Only do queued row select on the stage that was selected

* This prevents out-of-range errors when picking in a GS out view an
  expanded mesh, and getting a row that's higher than exists in the VS
  in view
This commit is contained in:
baldurk
2017-03-21 12:38:21 +00:00
parent d3faa58a78
commit d0394d9233
+3 -2
View File
@@ -1882,12 +1882,13 @@ namespace renderdocui.Windows
ScrollToRow(bufView, RowOffset);
if (m_QueuedRowSelect != -1)
if (m_QueuedRowSelect != -1 && state.m_Stage == m_MeshDisplay.type)
{
ScrollToRow(bufView, m_QueuedRowSelect);
bufView.ClearSelection();
bufView.Rows[m_QueuedRowSelect].Selected = true;
if(m_QueuedRowSelect < bufView.RowCount)
bufView.Rows[m_QueuedRowSelect].Selected = true;
SyncViews(bufView, true, true);