mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-05 21:44:24 +00:00
Ignore Constant initialiser data that is undefined
This commit is contained in:
1 parent
30fbb6b0f5
commit
b7a40e644a
1 file changed
+1
-1
@@ -7785,7 +7785,7 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
|
||||
if(gv->initialiser)
|
||||
{
|
||||
const Constant *initialData = gv->initialiser;
|
||||
if(!initialData->isNULL())
|
||||
if(!initialData->isNULL() && !initialData->isUndef())
|
||||
{
|
||||
RDCASSERT(ConvertDXILConstantToShaderVariable(initialData, globalVar.var));
|
||||
// Write ShaderVariable data back to memory
|
||||
|
||||
Reference in new issue
Block a user