Browse Source

fixed GL context acquire (applies to Qt GUI only)

pull/15/merge
bunnei 12 years ago
parent
commit
7a080551ac
  1. 2
      src/video_core/renderer_opengl/renderer_opengl.cpp

2
src/video_core/renderer_opengl/renderer_opengl.cpp

@ -32,6 +32,8 @@ RendererOpenGL::~RendererOpenGL() {
/// Swap buffers (render frame) /// Swap buffers (render frame)
void RendererOpenGL::SwapBuffers() { void RendererOpenGL::SwapBuffers() {
m_render_window->MakeCurrent();
// EFB->XFB copy // EFB->XFB copy
// TODO(bunnei): This is a hack and does not belong here. The copy should be triggered by some // TODO(bunnei): This is a hack and does not belong here. The copy should be triggered by some
// register write We're also treating both framebuffers as a single one in OpenGL. // register write We're also treating both framebuffers as a single one in OpenGL.

Loading…
Cancel
Save