Bit of a failure. Fixes 6964.

I was attempting to grab wglSwapIntervalEXT prior to having a valid WGL context.
This was doomed to fail.
This commit is contained in:
Ryan Houdek 2014-01-23 08:04:33 -06:00
parent 07db7520bf
commit 650bae12e1
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}