mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't make a blocking call to the UI from render thread
This commit is contained in:
@@ -267,8 +267,7 @@ void EventBrowser::on_timeDraws_clicked()
|
||||
rdctype::array<CounterResult> results;
|
||||
r->FetchCounters(counters, 1, &results);
|
||||
|
||||
GUIInvoke::blockcall(
|
||||
[this, results]() { SetDrawcallTimes(ui->events->topLevelItem(0), results); });
|
||||
GUIInvoke::call([this, results]() { SetDrawcallTimes(ui->events->topLevelItem(0), results); });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user