Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
655:9c42ee1b7d77 | 656:864e2d2a9a55 |
---|---|
121 if( this->gl_config.stereo ) { | 121 if( this->gl_config.stereo ) { |
122 attribs[i++] = GLX_STEREO; | 122 attribs[i++] = GLX_STEREO; |
123 attribs[i++] = this->gl_config.stereo; | 123 attribs[i++] = this->gl_config.stereo; |
124 } | 124 } |
125 | 125 |
126 if( this->gl_config.sample_buffers ) { | 126 if( this->gl_config.multisamplebuffers ) { |
127 attribs[i++] = GLX_SAMPLE_BUFFERS_ARB; | 127 attribs[i++] = GLX_SAMPLE_BUFFERS_ARB; |
128 attribs[i++] = this->gl_config.sample_buffers; | 128 attribs[i++] = this->gl_config.multisamplebuffers; |
129 } | 129 } |
130 | 130 |
131 if( this->gl_config.samples ) { | 131 if( this->gl_config.multisamplesamples ) { |
132 attribs[i++] = GLX_SAMPLES_ARB; | 132 attribs[i++] = GLX_SAMPLES_ARB; |
133 attribs[i++] = this->gl_config.samples; | 133 attribs[i++] = this->gl_config.multisamplesamples; |
134 } | 134 } |
135 | 135 |
136 #ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */ | 136 #ifdef GLX_DIRECT_COLOR /* Try for a DirectColor visual for gamma support */ |
137 attribs[i++] = GLX_X_VISUAL_TYPE; | 137 attribs[i++] = GLX_X_VISUAL_TYPE; |
138 attribs[i++] = GLX_DIRECT_COLOR; | 138 attribs[i++] = GLX_DIRECT_COLOR; |
360 glx_attrib = GLX_ACCUM_ALPHA_SIZE; | 360 glx_attrib = GLX_ACCUM_ALPHA_SIZE; |
361 break; | 361 break; |
362 case SDL_GL_STEREO: | 362 case SDL_GL_STEREO: |
363 glx_attrib = GLX_STEREO; | 363 glx_attrib = GLX_STEREO; |
364 break; | 364 break; |
365 case SDL_GL_SAMPLE_BUFFERS: | 365 case SDL_GL_MULTISAMPLEBUFFERS: |
366 glx_attrib = GLX_SAMPLE_BUFFERS_ARB; | 366 glx_attrib = GLX_SAMPLE_BUFFERS_ARB; |
367 break; | 367 break; |
368 case SDL_GL_SAMPLES: | 368 case SDL_GL_MULTISAMPLESAMPLES: |
369 glx_attrib = GLX_SAMPLES_ARB; | 369 glx_attrib = GLX_SAMPLES_ARB; |
370 break; | 370 break; |
371 default: | 371 default: |
372 return(-1); | 372 return(-1); |
373 } | 373 } |