mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix GL feature detection.
This commit is contained in:
parent
94c91e199a
commit
481be1cd34
5 changed files with 8 additions and 3 deletions
|
@ -387,9 +387,7 @@ void WindowsGLContext::Resize() {
|
|||
}
|
||||
|
||||
Thin3DContext *WindowsGLContext::CreateThin3DContext() {
|
||||
CheckGLExtensions();
|
||||
Thin3DContext *ctx = T3DCreateGLContext();
|
||||
if (ctx) {
|
||||
CheckGLExtensions();
|
||||
}
|
||||
return ctx;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -49,6 +49,7 @@ SDLJoystick *joystick = NULL;
|
|||
class GLDummyGraphicsContext : public DummyGraphicsContext {
|
||||
public:
|
||||
Thin3DContext *CreateThin3DContext() override {
|
||||
CheckGLExtensions();
|
||||
return T3DCreateGLContext();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue