mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Speculative crash fix - ensure prev array slice is in valid range
This commit is contained in:
@@ -1746,7 +1746,7 @@ namespace renderdocui.Windows
|
||||
}
|
||||
|
||||
if (sliceFace.SelectedIndex == -1)
|
||||
sliceFace.SelectedIndex = prevFirstArraySlice;
|
||||
sliceFace.SelectedIndex = Helpers.Clamp(prevFirstArraySlice, 0, (int)numSlices - 1);
|
||||
|
||||
prevFirstArraySlice = firstArraySlice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user