mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-21 03:21:02 +00:00
Don't copy debug string if there's nothing there
This commit is contained in:
1 parent
f930d6f7eb
commit
78fc832722
1 file changed
+2
-1
@@ -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