mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Check if the capture is closed while a timing request is pending
This commit is contained in:
@@ -501,6 +501,9 @@ void EventBrowser::on_timeDraws_clicked()
|
||||
m_Times = r->FetchCounters({GPUCounter::EventGPUDuration});
|
||||
|
||||
GUIInvoke::call(this, [this]() {
|
||||
if(ui->events->topLevelItemCount() == 0)
|
||||
return;
|
||||
|
||||
SetDrawcallTimes(ui->events->topLevelItem(0), m_Times);
|
||||
ui->events->update();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user