mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove error "DXIL GlobalVar initialiser"
Valid for a DXIL global var to be uninitialized (treat it as zero initialized)
This commit is contained in:
@@ -5639,12 +5639,10 @@ bool ThreadState::GetShaderVariableHelper(const DXIL::Value *dxilValue, DXIL::Op
|
||||
else if(const GlobalVar *gv = cast<GlobalVar>(dxilValue))
|
||||
{
|
||||
if(gv->initialiser)
|
||||
{
|
||||
var.value.u64v[0] = gv->initialiser->getU64();
|
||||
return true;
|
||||
}
|
||||
RDCERR("Unhandled DXIL GlobalVar no initialiser");
|
||||
return false;
|
||||
else
|
||||
memset(&var.value, 0, sizeof(var.value));
|
||||
return true;
|
||||
}
|
||||
|
||||
if(const Instruction *inst = cast<Instruction>(dxilValue))
|
||||
|
||||
Reference in New Issue
Block a user