mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-18 01:59:22 +00:00
Check if the capture is closed while a timing request is pending
This commit is contained in:
1 file changed
+3
@@ -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