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:
baldurk
2019-10-22 20:34:20 +01:00
parent 92e2899ca3
commit bb8c8294e5
@@ -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++)