mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Fix run to instruction checking instruction number vs. trace count
* The trace count could be less than the number of instructions if flow control causes some instructions to be skipped (and higher if some were repeated!). There's no need to validate this value anyway, RunTo will bail when it hits the end of the trace if the number is too high.
This commit is contained in:
@@ -1391,7 +1391,7 @@ namespace renderdocui.Windows
|
||||
|
||||
if (int.TryParse(start, out runTo))
|
||||
{
|
||||
if (runTo >= 0 && runTo < m_Trace.states.Length)
|
||||
if (runTo >= 0)
|
||||
{
|
||||
RunTo(runTo, true);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user