mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
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:
parent
07db7520bf
commit
650bae12e1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user