mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-30 18:45:13 +00:00
Improve display of callstacks while loading from remote
This commit is contained in:
1 file changed
+8
-1
@@ -180,17 +180,24 @@ void APIInspector::on_apiEvents_itemSelectionChanged()
|
||||
|
||||
if(chunk && !chunk->metadata.callstack.isEmpty())
|
||||
{
|
||||
ui->callstack->setUpdatesEnabled(false);
|
||||
ui->callstack->clear();
|
||||
ui->callstack->addItem(tr("Loading..."));
|
||||
|
||||
if(!m_Ctx.Replay().AsyncAccessInvoke([this, chunk](ICaptureAccess *access) {
|
||||
rdcarray<rdcstr> stack = access->GetResolve(chunk->metadata.callstack);
|
||||
|
||||
GUIInvoke::call(this, [this, stack]() { addCallstack(stack); });
|
||||
}))
|
||||
{
|
||||
ui->callstack->setUpdatesEnabled(false);
|
||||
ui->callstack->clear();
|
||||
ui->callstack->addItem(tr("Callstack resolution not available."));
|
||||
ui->callstack->setUpdatesEnabled(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->callstack->setUpdatesEnabled(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user