Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bit of a failure. Fixes 6964.
I was attempting to grab wglSwapIntervalEXT prior to having a valid WGL context.
This was doomed to fail.
  • Loading branch information
RyanHoudek committed Jan 23, 2014
1 parent 07db752 commit 650bae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/DolphinWX/GLInterface/WGL.cpp
Expand Up @@ -83,7 +83,6 @@ bool cInterfaceWGL::Create(void *&window_handle)
Host_SysMessage("failed to create window");
return false;
}
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)GLInterface->GetFuncAddress("wglSwapIntervalEXT");

// Show the window
EmuWindow::Show();
Expand Down Expand Up @@ -128,6 +127,10 @@ bool cInterfaceWGL::Create(void *&window_handle)
PanicAlert("(4) Can't create an OpenGL rendering context.");
return false;
}

// Grab the swap interval function pointer
wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)GLInterface->GetFuncAddress("wglSwapIntervalEXT");

return true;
}

Expand Down

0 comments on commit 650bae1

Please sign in to comment.