mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
SDL: Fix OpenGL init again. Fixes #10424
This commit is contained in:
parent
99f8c19d6a
commit
fe45a059b5
@ -248,6 +248,11 @@ int SDLGLGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode, std:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef USING_GLES2
|
||||||
|
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN;
|
||||||
|
#else
|
||||||
|
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE;
|
||||||
|
#endif
|
||||||
SDL_GLContext glContext = nullptr;
|
SDL_GLContext glContext = nullptr;
|
||||||
for (size_t i = 0; i < ARRAY_SIZE(attemptVersions); ++i) {
|
for (size_t i = 0; i < ARRAY_SIZE(attemptVersions); ++i) {
|
||||||
const auto &ver = attemptVersions[i];
|
const auto &ver = attemptVersions[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user