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:
baldurk
2018-08-31 22:14:12 +01:00
parent 01fb937e28
commit 5406227152
7 changed files with 39 additions and 34 deletions
+3 -3
View File
@@ -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);