From aacf885b48b090700c6c288873a128ec5e732659 Mon Sep 17 00:00:00 2001 From: Anti-Ultimate Date: Fri, 27 Jun 2014 23:50:51 +0200 Subject: [PATCH] Fix OpenGL VSync --- Source/Core/DolphinWX/GLInterface/WGL.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/DolphinWX/GLInterface/WGL.cpp b/Source/Core/DolphinWX/GLInterface/WGL.cpp index 6ae2e88af7..94bc0e3c36 100644 --- a/Source/Core/DolphinWX/GLInterface/WGL.cpp +++ b/Source/Core/DolphinWX/GLInterface/WGL.cpp @@ -127,12 +127,7 @@ bool cInterfaceWGL::Create(void *&window_handle) bool cInterfaceWGL::MakeCurrent() { - return wglMakeCurrent(hDC, hRC) ? true : false; -} - -bool cInterfaceWGL::ClearCurrent() -{ - bool success = wglMakeCurrent(hDC, nullptr) ? true : false; + bool success = wglMakeCurrent(hDC, hRC) ? true : false; if (success) { // Grab the swap interval function pointer @@ -141,6 +136,11 @@ bool cInterfaceWGL::ClearCurrent() return success; } +bool cInterfaceWGL::ClearCurrent() +{ + return wglMakeCurrent(hDC, nullptr) ? true : false; +} + // Update window width, size and etc. Called from Render.cpp void cInterfaceWGL::Update() {