diff --git a/renderdoc/driver/shaders/dxil/dxil_debug.cpp b/renderdoc/driver/shaders/dxil/dxil_debug.cpp index cd5e18813..bcaf6c8c8 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debug.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debug.cpp @@ -4290,7 +4290,7 @@ bool ThreadState::ExecuteInstruction(DebugAPIWrapper *apiWrapper, } const MemoryTracking::Allocation &allocation = itAlloc->second; ShaderVariable arg; - if(allocation.global) + if(allocation.global && !IsVariableAssigned(ptrId)) { RDCASSERT(IsVariableAssigned(baseMemoryId)); arg = m_Variables[baseMemoryId];