This commit is contained in:
Bill Meltsner
2010-05-03 20:40:43 -04:00
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -198,6 +198,12 @@ namespace opengl
// FSAA might have failed, disable it and try again
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0);
failed = SDL_SetVideoMode(width, height, 32, sdlflags ) == 0;
if (failed)
{
// There might be no FSAA at all
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0);
failed = SDL_SetVideoMode(width, height, 32, sdlflags ) == 0;
}
}
if(failed)
{