mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Don't copy debug string if there's nothing there
This commit is contained in:
@@ -260,7 +260,8 @@ Chunk::Chunk(Serialiser *ser, uint32_t chunkType, bool temporary)
|
||||
|
||||
memcpy(m_Data, ser->GetRawPtr(0), m_Length);
|
||||
|
||||
m_DebugStr = ser->GetDebugStr();
|
||||
if(ser->GetDebugText())
|
||||
m_DebugStr = ser->GetDebugStr();
|
||||
|
||||
ser->Rewind();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user