diff --git a/SDL/SDLGLGraphicsContext.cpp b/SDL/SDLGLGraphicsContext.cpp index 0939fe7d55..fff1defd68 100644 --- a/SDL/SDLGLGraphicsContext.cpp +++ b/SDL/SDLGLGraphicsContext.cpp @@ -23,11 +23,8 @@ 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 + mode |= SDL_WINDOW_OPENGL; + SDL_GLContext glContext = nullptr; for (size_t i = 0; i < ARRAY_SIZE(attemptVersions); ++i) { const auto &ver = attemptVersions[i]; diff --git a/SDL/SDLMain.cpp b/SDL/SDLMain.cpp index 6517748c58..cfae2330c3 100644 --- a/SDL/SDLMain.cpp +++ b/SDL/SDLMain.cpp @@ -555,6 +555,13 @@ int main(int argc, char *argv[]) { mode |= SDL_WINDOW_FULLSCREEN_DESKTOP; } + // If we're on mobile, don't try for windowed either. +#if defined(USING_GLES2) || defined(MOBILE_DEVICE) + mode |= SDL_WINDOW_FULLSCREEN; +#else + mode |= SDL_WINDOW_RESIZABLE; +#endif + if (mode & SDL_WINDOW_FULLSCREEN_DESKTOP) { pixel_xres = g_DesktopWidth; pixel_yres = g_DesktopHeight;