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:
baldurk
2015-04-21 21:00:18 +02:00
parent 392f9b7f2d
commit e35fc400dd
+6 -1
View File
@@ -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;