Permalink
Browse files

SDL: Fix OpenGL init again. Fixes #10424

  • Loading branch information...
hrydgard committed Dec 21, 2017
1 parent 99f8c19 commit fe45a059b5ab8546968e27d65eab9cbde42be6bb
Showing with 5 additions and 0 deletions.
  1. +5 −0 SDL/SDLMain.cpp
View
@@ -248,6 +248,11 @@ int SDLGLGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode, std:
#endif
};
#ifdef USING_GLES2
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN;
#else
mode |= SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE;
#endif
SDL_GLContext glContext = nullptr;
for (size_t i = 0; i < ARRAY_SIZE(attemptVersions); ++i) {
const auto &ver = attemptVersions[i];

0 comments on commit fe45a05

Please sign in to comment.