mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +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:
@@ -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