comparison src/video/maccommon/SDL_macgl.c @ 1656:96c2f89cc7e1 SDL-1.3

SDL-trunk-1.3-merge-1
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Apr 2006 09:09:48 +0000
parents f1781c15934c
children 14717b52abc0
comparison
equal deleted inserted replaced
1655:59227394023d 1656:96c2f89cc7e1
32 int Mac_GL_Init(_THIS) 32 int Mac_GL_Init(_THIS)
33 { 33 {
34 #if SDL_VIDEO_OPENGL 34 #if SDL_VIDEO_OPENGL
35 AGLPixelFormat format; 35 AGLPixelFormat format;
36 int i = 0; 36 int i = 0;
37 GLint attributes [ 24 ]; /* 24 is max possible in this setup */ 37 GLint attributes [ 26 ]; /* 26 is max possible in this setup */
38 GLboolean noerr; 38 GLboolean noerr;
39 39
40 /* load the gl driver from a default path */ 40 /* load the gl driver from a default path */
41 if ( ! this->gl_config.driver_loaded ) { 41 if ( ! this->gl_config.driver_loaded ) {
42 /* no driver has been loaded, use default (ourselves) */ 42 /* no driver has been loaded, use default (ourselves) */
93 if ( this->gl_config.multisamplesamples != 0 ) { 93 if ( this->gl_config.multisamplesamples != 0 ) {
94 attributes[i++] = AGL_SAMPLES_ARB; 94 attributes[i++] = AGL_SAMPLES_ARB;
95 attributes[i++] = this->gl_config.multisamplesamples; 95 attributes[i++] = this->gl_config.multisamplesamples;
96 } 96 }
97 #endif 97 #endif
98 if ( this->gl_config.accelerated > 0 ) {
99 attributes[i++] = AGL_ACCELERATED;
100 attributes[i++] = AGL_NO_RECOVERY;
101 }
102
98 attributes[i++] = AGL_ALL_RENDERERS; 103 attributes[i++] = AGL_ALL_RENDERERS;
99 attributes[i] = AGL_NONE; 104 attributes[i] = AGL_NONE;
100 105
101 format = aglChoosePixelFormat(NULL, 0, attributes); 106 format = aglChoosePixelFormat(NULL, 0, attributes);
102 if ( format == NULL ) { 107 if ( format == NULL ) {