Skip to content

Commit

Permalink
Fix for falling back to surface after SDL2 OpenGL init fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamlayers committed Jan 25, 2015
1 parent 4c78b1c commit 1060e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/sdlmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1060e7f

Please sign in to comment.