mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Make sure to handle debugging 'invalid' indices
* Crash upload fix * If a vertex is the strip restart index (displayed as "-1") or is reading out of bounds of the index buffer (displayed as "-") then we should still allow vertex debugging to go ahead, as if the index were just 0.
This commit is contained in:
@@ -2840,7 +2840,12 @@ namespace renderdocui.Windows
|
||||
|
||||
if (row >= ui.m_Rows.Length || ui.m_Rows[row].Length <= 1) return;
|
||||
|
||||
UInt32 idx = (UInt32)ui.m_Rows[row][1];
|
||||
UInt32 idx = 0;
|
||||
|
||||
if (ui.m_Rows[row][1] is UInt32)
|
||||
{
|
||||
idx = (UInt32)ui.m_Rows[row][1];
|
||||
}
|
||||
|
||||
var draw = m_Core.CurDrawcall;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user