Mercurial > love-experiments
diff src/modules/window/sdl/Window.cpp @ 1339:9dc7d74bbc58
Fixed some potential instability or crash issues
| author | Alex Szpakowski <slime73@gmail.com> |
|---|---|
| date | Sun, 03 Mar 2013 20:23:40 -0400 |
| parents | 730ed5f01ab0 |
| children | 9115e52f5350 |
line wrap: on
line diff
--- a/src/modules/window/sdl/Window.cpp Sun Mar 03 19:55:37 2013 -0400 +++ b/src/modules/window/sdl/Window.cpp Sun Mar 03 20:23:40 2013 -0400 @@ -134,7 +134,7 @@ // FSAA might have caused the failure, disable it and try again SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0); - failed = SDL_SetVideoMode(width, height, 32, sdlflags) == 0; + failed = (surface = SDL_SetVideoMode(width, height, 32, sdlflags)) == 0; } if (failed) {
