diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-06 18:02:47 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-06 18:02:47 +0100 |
commit | 8306703a7d986644ee5282d323953133f14211ba (patch) | |
tree | 790b6de79fdd051dd238761de6072f00a684511e | |
parent | Merge pull request #3257 from degasus/no_busy_loops (diff) | |
download | yuzu-8306703a7d986644ee5282d323953133f14211ba.tar yuzu-8306703a7d986644ee5282d323953133f14211ba.tar.gz yuzu-8306703a7d986644ee5282d323953133f14211ba.tar.bz2 yuzu-8306703a7d986644ee5282d323953133f14211ba.tar.lz yuzu-8306703a7d986644ee5282d323953133f14211ba.tar.xz yuzu-8306703a7d986644ee5282d323953133f14211ba.tar.zst yuzu-8306703a7d986644ee5282d323953133f14211ba.zip |
-rw-r--r-- | src/yuzu/bootmanager.cpp | 11 |
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(); } } |