Fix debugging function calls without return values

This commit is contained in:
baldurk
2020-03-31 18:45:36 +01:00
parent fbe2d1fbee
commit 414d8df8f5
@@ -929,12 +929,12 @@ void ThreadState::StepNext(ShaderDebugState *state,
}
else
{
returnValue.name = "<return value>";
if(opdata.op == Op::ReturnValue)
{
OpReturnValue ret(it);
returnValue = GetSrc(ret.value);
returnValue.name = "<return value>";
}
nextInstruction = exitingFrame->funcCallInstruction;