[GLExtensions] Make sure to initialize our function pointers with VideoSoftware as well.
This commit is contained in:
parent
eba0c21b5a
commit
fc1f8291d6
|
@ -1,4 +1,5 @@
|
|||
set(SRCS BPMemLoader.cpp
|
||||
set(SRCS ../OGL/GLExtensions/GLExtensions.cpp
|
||||
BPMemLoader.cpp
|
||||
Clipper.cpp
|
||||
SWCommandProcessor.cpp
|
||||
CPMemLoader.cpp
|
||||
|
|
|
@ -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…
Reference in New Issue