Skip to content
Snippets Groups Projects
Commit 7c1b0304 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qt: wait until setup is done in `CompositorDirectComposition::makeMainInterface()`

`CompositorDirectComposition::setupVoutWindow()` may be called before setup is
completed, yielding an assertion failure.
parent 0479c4ab
No related branches found
No related tags found
1 merge request!5677qt: wait until setup is done in `CompositorDirectComposition::makeMainInterface()`
Pipeline #489140 passed with stage
in 15 minutes and 31 seconds
......@@ -230,14 +230,17 @@ bool CompositorDirectComposition::makeMainInterface(MainCtx* mainCtx)
connect(quickViewPtr,
&QQuickWindow::frameSwapped, // At this stage, we can be sure that QRhi and QRhiSwapChain are valid.
this,
&CompositorDirectComposition::setup,
[this, &eventLoop]() {
setup();
eventLoop.quit();
},
Qt::SingleShotConnection);
}
else
{
appropriateGraphicsApi = false;
eventLoop.quit();
}
eventLoop.quit();
}, static_cast<Qt::ConnectionType>(Qt::SingleShotConnection | Qt::DirectConnection));
connect(quickViewPtr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment