From 1060e7fb8f7a444127f98438eafe51764093f048 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Sun, 25 Jan 2015 08:55:08 -0500 Subject: [PATCH] Fix for falling back to surface after SDL2 OpenGL init fails. --- src/gui/sdlmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index b9fd6224d..096215eb0 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -1804,7 +1804,7 @@ static void GUI_StartUp(Section * sec) { sdl.desktop.want_type=SCREEN_SURFACE; } } - if (sdl.desktop.want_type=SCREEN_OPENGL) { + if (sdl.desktop.want_type==SCREEN_OPENGL) { #else // Same story but for SDL 1.2 sdl.surface=SDL_SetVideoMode_Wrap(640,400,0,SDL_OPENGL); if (sdl.surface == NULL) {