mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Don't use full filename as texture name in image viewer
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "replay/replay_driver.h"
|
||||
#include "serialise/rdcfile.h"
|
||||
#include "stb/stb_image.h"
|
||||
#include "strings/string_utils.h"
|
||||
#include "tinyexr/tinyexr.h"
|
||||
|
||||
class ImageViewer : public IReplayDriver
|
||||
@@ -55,7 +56,7 @@ public:
|
||||
m_Resources.push_back(ResourceDescription());
|
||||
m_Resources[0].resourceId = m_TextureID;
|
||||
m_Resources[0].autogeneratedName = false;
|
||||
m_Resources[0].name = m_Filename;
|
||||
m_Resources[0].name = get_basename(m_Filename);
|
||||
|
||||
m_PipelineState.outputMerger.renderTargets.resize(1);
|
||||
m_PipelineState.outputMerger.renderTargets[0].resourceResourceId = m_TextureID;
|
||||
|
||||
Reference in New Issue
Block a user