diff --git a/renderdoc/driver/shaders/dxil/dxil_debug.cpp b/renderdoc/driver/shaders/dxil/dxil_debug.cpp index dd5df37217..96f062c65d 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debug.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debug.cpp @@ -7806,6 +7806,9 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain if(!scope->functionName.empty()) callstack.push_back(scope->functionName); } + // If there is no callstack then use the function name + if(callstack.empty()) + callstack.push_back(f->name); info.callstacks[instructionIndex] = callstack; } // If there is no callstack for the function then use the function name