Mercurial > sdl-ios-xcode
diff src/video/maccommon/SDL_macgl.c @ 656:864e2d2a9a55
Merged in Ryan's multisample code for MacOS, and changed the constants to match.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 22 Jul 2003 15:33:28 +0000 |
parents | 8a43e0cbf02f |
children | a33b7819b917 |
line wrap: on
line diff
--- a/src/video/maccommon/SDL_macgl.c Tue Jul 22 15:10:06 2003 +0000 +++ b/src/video/maccommon/SDL_macgl.c Tue Jul 22 15:33:28 2003 +0000 @@ -49,6 +49,14 @@ if ( this->gl_config.stereo ) { attributes[i++] = AGL_STEREO; } + if ( this->gl_config.multisamplebuffers != 0 ) { + attributes[i++] = AGL_SAMPLE_BUFFERS_ARB; + attributes[i++] = this->gl_config.multisamplebuffers; + } + if ( this->gl_config.multisamplesamples != 0 ) { + attributes[i++] = AGL_SAMPLES_ARB; + attributes[i++] = this->gl_config.multisamplesamples; + } if ( this->gl_config.depth_size != 0 ) { attributes[i++] = AGL_DEPTH_SIZE; attributes[i++] = this->gl_config.depth_size;