Commits

Bart van Strien committed 56896c6

Fix fsaa crash on OSX, can't enable multisampling before a window is created (bug #350)

  • Participants
  • Parent commits 496a911

Comments (0)

Files changed (1)

src/modules/window/sdl/Window.cpp

 		{
 			SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ) ;
 			SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, fsaa ) ;
-			glEnable(GL_MULTISAMPLE);
 		}
 
 		// Fullscreen?
 			height = videoinfo->current_h;
 		}
 
+		if (fsaa > 0)
+			glEnable(GL_MULTISAMPLE);
+
 		GLint buffers;
 		GLint samples;