mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Call CreateWindowingData on the main UI thread
* This allows mac to patch-up the widget to be renderable, and has to happen on the UI thread.
This commit is contained in:
@@ -1373,10 +1373,10 @@ void BufferViewer::OnCaptureLoaded()
|
||||
if(!m_MeshView)
|
||||
return;
|
||||
|
||||
WId renderID = ui->render->winId();
|
||||
WindowingData winData = m_Ctx.CreateWindowingData(ui->render);
|
||||
|
||||
m_Ctx.Replay().BlockInvoke([renderID, this](IReplayController *r) {
|
||||
m_Output = r->CreateOutput(m_Ctx.CreateWindowingData(renderID), ReplayOutputType::Mesh);
|
||||
m_Ctx.Replay().BlockInvoke([winData, this](IReplayController *r) {
|
||||
m_Output = r->CreateOutput(winData, ReplayOutputType::Mesh);
|
||||
|
||||
ui->render->setOutput(m_Output);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user