summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-06 20:09:19 +0100
committerGitHub <noreply@github.com>2020-01-06 20:09:19 +0100
commit984563b7730df162f15cd6b1362e5a8bbe2bc983 (patch)
treeff3df189c0b0e8e47d31a4d50db4b68ca0389aba
parentMerge pull request #3261 from degasus/page_table (diff)
parentyuzu/bootmanager: Remove {glx,wgl}MakeCurrent on SwapBuffers (diff)
downloadyuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.gz
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.bz2
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.lz
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.xz
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.zst
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.zip
-rw-r--r--src/yuzu/bootmanager.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 07a720494..7490fb718 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -215,18 +215,11 @@ void GRenderWindow::moveContext() {
}
void GRenderWindow::SwapBuffers() {
- // In our multi-threaded QWidget use case we shouldn't need to call `makeCurrent`,
- // since we never call `doneCurrent` in this thread.
- // However:
- // - The Qt debug runtime prints a bogus warning on the console if `makeCurrent` wasn't called
- // since the last time `swapBuffers` was executed;
- // - On macOS, if `makeCurrent` isn't called explicitly, resizing the buffer breaks.
- context->makeCurrent(child);
-
context->swapBuffers(child);
+
if (!first_frame) {
- emit FirstFrameDisplayed();
first_frame = true;
+ emit FirstFrameDisplayed();
}
}