Skip to content

Commit

Permalink
Merge pull request #533 from Anti-Ultimate/master
Browse files Browse the repository at this point in the history
Fix OpenGL VSync
  • Loading branch information
Sonicadvance1 committed Jun 28, 2014
2 parents e0bedc3 + aacf885 commit aae1630
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Core/DolphinWX/GLInterface/WGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
{
Expand Down

0 comments on commit aae1630

Please sign in to comment.