Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
655:9c42ee1b7d77 | 656:864e2d2a9a55 |
---|---|
47 attributes[i++] = AGL_DOUBLEBUFFER; | 47 attributes[i++] = AGL_DOUBLEBUFFER; |
48 } | 48 } |
49 if ( this->gl_config.stereo ) { | 49 if ( this->gl_config.stereo ) { |
50 attributes[i++] = AGL_STEREO; | 50 attributes[i++] = AGL_STEREO; |
51 } | 51 } |
52 if ( this->gl_config.multisamplebuffers != 0 ) { | |
53 attributes[i++] = AGL_SAMPLE_BUFFERS_ARB; | |
54 attributes[i++] = this->gl_config.multisamplebuffers; | |
55 } | |
56 if ( this->gl_config.multisamplesamples != 0 ) { | |
57 attributes[i++] = AGL_SAMPLES_ARB; | |
58 attributes[i++] = this->gl_config.multisamplesamples; | |
59 } | |
52 if ( this->gl_config.depth_size != 0 ) { | 60 if ( this->gl_config.depth_size != 0 ) { |
53 attributes[i++] = AGL_DEPTH_SIZE; | 61 attributes[i++] = AGL_DEPTH_SIZE; |
54 attributes[i++] = this->gl_config.depth_size; | 62 attributes[i++] = this->gl_config.depth_size; |
55 } | 63 } |
56 if ( this->gl_config.red_size != 0 && | 64 if ( this->gl_config.red_size != 0 && |