Fix for FSAA OS X bug -- Please fix in CVS Code

I stopped complaining and went in an fixed the bug myself :slight_smile: SDL
always dies if you try to use FSAA on Mac OS X, the problem is in the
file:

SDL_QuartzGL.m

Line #102 (or somewhere around there, my SDL copy is a bit old.)

The code:

 if ( this->gl_config.multisamplesamples != 0 ) {
     attr[i++] = NSOpenGLPFASamples;
     attr[i++] = this->gl_config.multisamplesamples;
	attr[i++] = NSOpenGLPFANoRecovery;
		attr[i++] = (NSOpenGLPixelFormatAttribute)nil;
 }

Change to:

 if ( this->gl_config.multisamplesamples != 0 ) {
     attr[i++] = NSOpenGLPFASamples;
     attr[i++] = this->gl_config.multisamplesamples;
	attr[i++] = NSOpenGLPFANoRecovery;
 //    KILL THIS LINE!
 }

NSOpenGLPFANoRecovery DOES NOT have any params following it. This is
what kills it.

Please fix :slight_smile:

[>] Brian

I stopped complaining and went in an fixed the bug myself :slight_smile: SDL
always dies if you try to use FSAA on Mac OS X, the problem is in the
file:

It’s in CVS, thanks!

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment