From 650bae12e1ddbebe992714db9b3eb9d38f2621fe Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 23 Jan 2014 08:04:33 -0600 Subject: [PATCH] Bit of a failure. Fixes 6964. I was attempting to grab wglSwapIntervalEXT prior to having a valid WGL context. This was doomed to fail. --- Source/Core/DolphinWX/GLInterface/WGL.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }