Fixed some potential instability or crash issues

This commit is contained in:
Alex Szpakowski
2013-03-03 20:23:40 -04:00
parent d5245483ef
commit 4ae126ac44
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ bool Window::setWindow(int width, int height, WindowFlags *flags)
// 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)
{