mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 11:21:01 +00:00
Fix out of bounds access if some threads have exited
This commit is contained in:
@@ -1794,7 +1794,8 @@ void Debugger::CalcActiveMask(rdcarray<bool> &activeMask)
|
||||
rdcarray<bool> inConverge;
|
||||
inConverge.resize(activeMask.size());
|
||||
for(size_t i = 0; i < workgroup.size(); i++)
|
||||
inConverge[i] = (workgroup[i].callstack.back()->curBlock == convergeBlock);
|
||||
inConverge[i] = (!workgroup[i].callstack.empty() &&
|
||||
workgroup[i].callstack.back()->curBlock == convergeBlock);
|
||||
|
||||
// is any thread active, but not converged?
|
||||
bool anyActiveNotConverged = false;
|
||||
|
||||
Reference in New Issue
Block a user