mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-07 15:20:58 +00:00
Ensure we always create a reflection object, even if it's empty
* Fixes crashes with DXBC objects that only contain input/output signatures
This commit is contained in:
@@ -994,6 +994,8 @@ DXBCContainer::DXBCContainer(const void *ByteCode, size_t ByteCodeLength)
|
||||
m_Reflection = m_DXBCByteCode->GuessReflection();
|
||||
else if(m_DXILByteCode)
|
||||
m_Reflection = m_DXILByteCode->GetReflection();
|
||||
else
|
||||
m_Reflection = new Reflection;
|
||||
}
|
||||
|
||||
for(uint32_t chunkIdx = 0; chunkIdx < header->numChunks; chunkIdx++)
|
||||
|
||||
Reference in New Issue
Block a user