Skip to content

Commit b7a40e6

Browse files
committed
Ignore Constant initialiser data that is undefined
1 parent 30fbb6b commit b7a40e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderdoc/driver/shaders/dxil/dxil_debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7785,7 +7785,7 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
77857785
if(gv->initialiser)
77867786
{
77877787
const Constant *initialData = gv->initialiser;
7788-
if(!initialData->isNULL())
7788+
if(!initialData->isNULL() && !initialData->isUndef())
77897789
{
77907790
RDCASSERT(ConvertDXILConstantToShaderVariable(initialData, globalVar.var));
77917791
// Write ShaderVariable data back to memory

0 commit comments

Comments
 (0)