[SDL] Fix for FSAA OS X bug -- Please fix in CVS Code
Brian Barnes
ggadwa at charter.net
Mon Feb 20 16:54:51 PST 2006
I stopped complaining and went in an fixed the bug myself :) 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 :)
[>] Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060220/98598c6c/attachment.htm>
More information about the SDL
mailing list