mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
[GLExtensions] Make sure to initialize our function pointers with VideoSoftware as well.
This commit is contained in:
parent
eba0c21b5a
commit
fc1f8291d6
2 changed files with 11 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
#include "VideoConfigDialog.h"
|
||||
#endif // HAVE_WX
|
||||
|
||||
|
||||
#include "../OGL/GLExtensions/GLExtensions.h"
|
||||
#include "SWCommandProcessor.h"
|
||||
#include "OpcodeDecoder.h"
|
||||
#include "SWVideoConfig.h"
|
||||
|
@ -168,6 +168,14 @@ void VideoSoftware::Video_Cleanup()
|
|||
void VideoSoftware::Video_Prepare()
|
||||
{
|
||||
GLInterface->MakeCurrent();
|
||||
|
||||
// Init extension support.
|
||||
if (!GLExtensions::Init())
|
||||
{
|
||||
ERROR_LOG(VIDEO, "GLExtensions::Init failed!Does your video card support OpenGL 2.0?");
|
||||
return;
|
||||
}
|
||||
|
||||
// Handle VSync on/off
|
||||
GLInterface->SwapInterval(VSYNC_ENABLED);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue