Don't list a partial callstack for code without debug info

This commit is contained in:
baldurk
2022-09-13 17:24:42 +01:00
parent bc867681a1
commit 6ed5ac046b
@@ -1924,6 +1924,12 @@ rdcarray<ShaderDebugState> Debugger::ContinueDebug()
state.callstack.insert(insertPoint, scope->name);
}
// if this instruction has no scope, don't give it a callstack
if(GetScope(endOffs) == NULL)
{
state.callstack.clear();
}
// move to the next inline up on our inline stack. If we reach an actual function
// call, this parent will be NULL as there was no more inlining - the final scope will
// refer to the real function which is already on our stack