mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +00:00
Make sure we're on a consistent event before calling OnLogFileLoaded
* Certain panels like BufferViewer assume there is a current drawcall at startup and not an invalid event ID like 0. Normally the event browser is loaded first and sets the event ID, but if it's later in the list this will break.
This commit is contained in:
1 parent
0a611417c1
commit
477df04072
5 files changed
+27
-13
No files matched your search
@@ -113,7 +113,7 @@ void EventBrowser::OnLogfileLoaded()
|
||||
|
||||
ui->events->expandItem(frame);
|
||||
|
||||
m_Ctx->SetEventID(this, lastEID, lastEID);
|
||||
m_Ctx->SetEventID({this}, lastEID, lastEID);
|
||||
}
|
||||
|
||||
void EventBrowser::OnLogfileClosed()
|
||||
@@ -251,7 +251,7 @@ void EventBrowser::on_events_currentItemChanged(QTreeWidgetItem *current, QTreeW
|
||||
uint EID = current->data(COL_EID, Qt::UserRole).toUInt();
|
||||
uint lastEID = current->data(COL_LAST_EID, Qt::UserRole).toUInt();
|
||||
|
||||
m_Ctx->SetEventID(this, EID, lastEID);
|
||||
m_Ctx->SetEventID({this}, EID, lastEID);
|
||||
}
|
||||
|
||||
void EventBrowser::on_HideFindJump()
|
||||
|
||||
Reference in new issue
Block a user