diff options
| author | Ryan Houdek <ryan.houdek@codethink.co.uk> | 2014-01-23 08:04:33 -0600 |
|---|---|---|
| committer | Ryan Houdek <ryan.houdek@codethink.co.uk> | 2014-01-23 08:04:33 -0600 |
| commit | 650bae12e1ddbebe992714db9b3eb9d38f2621fe (patch) | |
| tree | bfacac12bfcbe1cf50e75077a9b40fbd860bbed0 /Source/Core/DolphinWX/GLInterface/WGL.cpp | |
| parent | 07db7520bf136580af469f98586820c5d19ba371 (diff) | |
Bit of a failure. Fixes 6964.
I was attempting to grab wglSwapIntervalEXT prior to having a valid WGL context.
This was doomed to fail.
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/WGL.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GLInterface/WGL.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/WGL.cpp b/Source/Core/DolphinWX/GLInterface/WGL.cpp index 6587a22d81..f8878a587b 100644 --- a/Source/Core/DolphinWX/GLInterface/WGL.cpp +++ b/Source/Core/DolphinWX/GLInterface/WGL.cpp @@ -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(); @@ -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; } |
