Skip to content

Commit bfd016c

Browse files
committed
Fix DXIL Load of a single element from a global array Closes baldurk#3549
1 parent 2723cf8 commit bfd016c

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
@@ -4290,7 +4290,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper,
42904290
}
42914291
const MemoryTracking::Allocation &allocation = itAlloc->second;
42924292
ShaderVariable arg;
4293-
if(allocation.global)
4293+
if(allocation.global && !IsVariableAssigned(ptrId))
42944294
{
42954295
RDCASSERT(IsVariableAssigned(baseMemoryId));
42964296
arg = m_Variables[baseMemoryId];

0 commit comments

Comments
 (0)