Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzVideo.m @ 450:8a43e0cbf02f
Added SDL_GL_STEREO for stereoscopic OpenGL contexts
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 19 Aug 2002 17:58:08 +0000 |
parents | 140798e1e7a6 |
children | 4b8ff8ac2c07 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.m Mon Aug 19 03:40:44 2002 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Mon Aug 19 17:58:08 2002 +0000 @@ -1157,6 +1157,10 @@ attr[i++] = NSOpenGLPFADoubleBuffer; } + if ( this->gl_config.stereo ) { + attr[i++] = NSOpenGLPFAStereo; + } + if ( this->gl_config.stencil_size != 0 ) { attr[i++] = NSOpenGLPFAStencilSize; attr[i++] = this->gl_config.stencil_size; @@ -1245,6 +1249,7 @@ case SDL_GL_ACCUM_GREEN_SIZE: attr = GL_ACCUM_GREEN_BITS; break; case SDL_GL_ACCUM_BLUE_SIZE: attr = GL_ACCUM_BLUE_BITS; break; case SDL_GL_ACCUM_ALPHA_SIZE: attr = GL_ACCUM_ALPHA_BITS; break; + case SDL_GL_STEREO: attr = GL_STEREO; break; case SDL_GL_BUFFER_SIZE: { GLint bits = 0;