summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-01-06 14:09:19 -0500
committerGravatar GitHub2020-01-06 14:09:19 -0500
commit984563b7730df162f15cd6b1362e5a8bbe2bc983 (patch)
treeff3df189c0b0e8e47d31a4d50db4b68ca0389aba /src
parentMerge pull request #3261 from degasus/page_table (diff)
parentyuzu/bootmanager: Remove {glx,wgl}MakeCurrent on SwapBuffers (diff)
downloadyuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.gz
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.tar.xz
yuzu-984563b7730df162f15cd6b1362e5a8bbe2bc983.zip
Merge pull request #3277 from ReinUsesLisp/make-current
yuzu/bootmanager: Remove {glx,wgl}MakeCurrent on SwapBuffers
Diffstat (limited to 'src')
-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() {
215} 215}
216 216
217void GRenderWindow::SwapBuffers() { 217void GRenderWindow::SwapBuffers() {
218 // In our multi-threaded QWidget use case we shouldn't need to call `makeCurrent`,
219 // since we never call `doneCurrent` in this thread.
220 // However:
221 // - The Qt debug runtime prints a bogus warning on the console if `makeCurrent` wasn't called
222 // since the last time `swapBuffers` was executed;
223 // - On macOS, if `makeCurrent` isn't called explicitly, resizing the buffer breaks.
224 context->makeCurrent(child);
225
226 context->swapBuffers(child); 218 context->swapBuffers(child);
219
227 if (!first_frame) { 220 if (!first_frame) {
228 emit FirstFrameDisplayed();
229 first_frame = true; 221 first_frame = true;
222 emit FirstFrameDisplayed();
230 } 223 }
231} 224}
232 225