mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Avoid exception seeking to invalid row in mesh viewer
* This happened when jumping to a primitive from pixel history if the views were synced.
This commit is contained in:
@@ -3465,7 +3465,8 @@ namespace renderdocui.Windows
|
||||
|
||||
if (scroll)
|
||||
{
|
||||
if (g.RowCount > 0 && g.RowCount > primary.FirstDisplayedScrollingRowIndex)
|
||||
if (g.RowCount > 0 && primary.FirstDisplayedScrollingRowIndex >= 0 &&
|
||||
g.RowCount > primary.FirstDisplayedScrollingRowIndex)
|
||||
g.FirstDisplayedScrollingRowIndex = primary.FirstDisplayedScrollingRowIndex;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user