Check if the capture is closed while a timing request is pending

This commit is contained in:
baldurk
2019-04-12 15:11:26 +01:00
parent 04894b4331
commit de37c7d005
+3
View File
@@ -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();
});