summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-21 22:00:32 -0400
committerGravatar bunnei2014-04-21 22:00:32 -0400
commit7a080551ac1ae7859adfa2bc410401e859d75590 (patch)
tree9b392aedd87d8ec8083a355de6d8b0e0d2cfa5e6 /src
parentfixed VSProps for Qt DLL copy (diff)
downloadyuzu-7a080551ac1ae7859adfa2bc410401e859d75590.tar.gz
yuzu-7a080551ac1ae7859adfa2bc410401e859d75590.tar.xz
yuzu-7a080551ac1ae7859adfa2bc410401e859d75590.zip
fixed GL context acquire (applies to Qt GUI only)
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 35804aee1..cf7b029ab 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -32,6 +32,8 @@ RendererOpenGL::~RendererOpenGL() {
32 32
33/// Swap buffers (render frame) 33/// Swap buffers (render frame)
34void RendererOpenGL::SwapBuffers() { 34void RendererOpenGL::SwapBuffers() {
35 m_render_window->MakeCurrent();
36
35 // EFB->XFB copy 37 // EFB->XFB copy
36 // TODO(bunnei): This is a hack and does not belong here. The copy should be triggered by some 38 // TODO(bunnei): This is a hack and does not belong here. The copy should be triggered by some
37 // register write We're also treating both framebuffers as a single one in OpenGL. 39 // register write We're also treating both framebuffers as a single one in OpenGL.