mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-09 01:00:51 +00:00
Don't serialise bytecode buffer if size is 0 - leave pointer as NULL
This commit is contained in:
@@ -209,7 +209,9 @@ void Serialiser::Serialise(const char *name, D3D12_SHADER_BYTECODE &el)
|
||||
el.pShaderBytecode = NULL;
|
||||
el.BytecodeLength = sz;
|
||||
}
|
||||
SerialiseBuffer("pShaderBytecode", (byte *&)el.pShaderBytecode, sz);
|
||||
|
||||
if(dataSize > 0)
|
||||
SerialiseBuffer("pShaderBytecode", (byte *&)el.pShaderBytecode, sz);
|
||||
}
|
||||
|
||||
template <>
|
||||
|
||||
Reference in New Issue
Block a user