Skip to content

Commit

Permalink
Use the function name if no callstack is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Dec 19, 2024
1 parent c331152 commit 65ce7ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65ce7ff

Please sign in to comment.