Permalink
Browse files

Should now fall back to no FSAA when it is not available at all

  • Loading branch information...
1 parent c32168f commit 2571f6eecc601c105b65dabea8676a97be46a028 bart@bartbes.ath.cx committed Apr 19, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/modules/graphics/opengl/Graphics.cpp
@@ -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)
{

0 comments on commit 2571f6e

Please sign in to comment.