mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-18 18:19:12 +00:00
Fix incorrect scope end instruction value when extending SSA ID lifetime
This commit is contained in:
1 parent
76ca83b27a
commit
afb82cd6d5
1 file changed
+1
-1
@@ -9622,7 +9622,7 @@ ShaderDebugTrace *Debugger::BeginDebug(DebugAPIWrapper *apiWrapper, uint32_t eve
|
||||
const ExecPointReference ¤t = info.maxExecPointPerId[localMapping.debugVarSSAId];
|
||||
if(!current.IsValid())
|
||||
continue;
|
||||
uint32_t scopeEndInst = scope->maxInstruction + 1;
|
||||
uint32_t scopeEndInst = scope->maxInstruction;
|
||||
scopeEndInst = RDCMIN(scopeEndInst, (uint32_t)info.instructionToBlock.size() - 1);
|
||||
const uint32_t scopeEndBlock = info.instructionToBlock[scopeEndInst];
|
||||
ExecPointReference scopeEnd(scopeEndBlock, scopeEndInst);
|
||||
|
||||
Reference in new issue
Block a user