Fix GL feature detection.

This commit is contained in:
Unknown W. Brackets 2016-01-06 20:10:42 -08:00
parent 94c91e199a
commit 481be1cd34
5 changed files with 8 additions and 3 deletions

View file

@ -387,9 +387,7 @@ void WindowsGLContext::Resize() {
}
Thin3DContext *WindowsGLContext::CreateThin3DContext() {
CheckGLExtensions();
Thin3DContext *ctx = T3DCreateGLContext();
if (ctx) {
CheckGLExtensions();
}
return ctx;
}

View file

@ -27,6 +27,7 @@
#include "net/resolve.h"
#include "android/jni/native_audio.h"
#include "gfx/gl_common.h"
#include "gfx_es2/gpu_features.h"
#include "Common/GraphicsContext.h"
#include "Common/GL/GLInterfaceBase.h"
@ -52,6 +53,7 @@ public:
void SwapInterval(int interval) override {}
void Resize() {}
Thin3DContext *CreateThin3DContext() {
CheckGLExtensions();
return T3DCreateGLContext();
}

View file

@ -13,6 +13,7 @@
#include <bps/navigator_invoke.h> // Receive invocation messages
#include "BlackberryMain.h"
#include "base/NKCodeFromBlackberry.h"
#include "gfx_es2/gpu_features.h"
#include "thin3d/thin3d.h"
#include "Core/System.h"
@ -26,6 +27,7 @@ static GraphicsContext *graphicsContext;
class GLDummyGraphicsContext : public DummyGraphicsContext {
public:
Thin3DContext *CreateThin3DContext() override {
CheckGLExtensions();
return T3DCreateGLContext();
}
};

View file

@ -49,6 +49,7 @@ SDLJoystick *joystick = NULL;
class GLDummyGraphicsContext : public DummyGraphicsContext {
public:
Thin3DContext *CreateThin3DContext() override {
CheckGLExtensions();
return T3DCreateGLContext();
}
};

View file

@ -17,6 +17,7 @@
#include "ui/screen.h"
#include "thin3d/thin3d.h"
#include "input/keycodes.h"
#include "gfx_es2/gpu_features.h"
#include "Core/Config.h"
#include "Common/GraphicsContext.h"
@ -36,6 +37,7 @@
class IOSDummyGraphicsContext : public DummyGraphicsContext {
public:
Thin3DContext *CreateThin3DContext() override {
CheckGLExtensions();
return T3DCreateGLContext();
}
};