Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11gl.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 | 9c42ee1b7d77 |
children | adbed8d7a991 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11gl.c Tue Jul 22 15:10:06 2003 +0000 +++ b/src/video/x11/SDL_x11gl.c Tue Jul 22 15:33:28 2003 +0000 @@ -123,14 +123,14 @@ attribs[i++] = this->gl_config.stereo; } - if( this->gl_config.sample_buffers ) { + if( this->gl_config.multisamplebuffers ) { attribs[i++] = GLX_SAMPLE_BUFFERS_ARB; - attribs[i++] = this->gl_config.sample_buffers; + attribs[i++] = this->gl_config.multisamplebuffers; } - if( this->gl_config.samples ) { + if( this->gl_config.multisamplesamples ) { attribs[i++] = GLX_SAMPLES_ARB; - attribs[i++] = this->gl_config.samples; + attribs[i++] = this->gl_config.multisamplesamples; } #ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */ @@ -362,10 +362,10 @@ case SDL_GL_STEREO: glx_attrib = GLX_STEREO; break; - case SDL_GL_SAMPLE_BUFFERS: + case SDL_GL_MULTISAMPLEBUFFERS: glx_attrib = GLX_SAMPLE_BUFFERS_ARB; break; - case SDL_GL_SAMPLES: + case SDL_GL_MULTISAMPLESAMPLES: glx_attrib = GLX_SAMPLES_ARB; break; default: