C.W. Betts 2009-10-20 09:58:56 PDT
The compiler complains that long is an incompatible pointer type for
[gl_context setValues: forParameter:] and CGLSetParameter. This only shows up
on x86_64, but it still might be an issue.
1.1 --- a/src/video/quartz/SDL_QuartzGL.m Tue Oct 20 03:47:29 2009 +0000
1.2 +++ b/src/video/quartz/SDL_QuartzGL.m Thu Oct 22 04:53:44 2009 +0000
1.3 @@ -153,7 +153,7 @@
1.4 * http://lists.apple.com/archives/mac-opengl/2006/Jan/msg00080.html )
1.5 */
1.6 if ( this->gl_config.swap_control >= 0 ) {
1.7 - long value;
1.8 + GLint value;
1.9 value = this->gl_config.swap_control;
1.10 [ gl_context setValues: &value forParameter: NSOpenGLCPSwapInterval ];
1.11 }
1.12 @@ -175,7 +175,7 @@
1.13 #endif
1.14
1.15 {
1.16 - long cache_max = 64;
1.17 + GLint cache_max = 64;
1.18 CGLContextObj ctx = QZ_GetCGLContextObj(gl_context);
1.19 CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max);
1.20 CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max);
1.21 @@ -261,7 +261,7 @@
1.22 }
1.23 case SDL_GL_ACCELERATED_VISUAL:
1.24 {
1.25 - long val;
1.26 + GLint val;
1.27 /* FIXME: How do we get this information here?
1.28 [fmt getValues: &val forAttribute: NSOpenGLPFAAccelerated attr forVirtualScreen: 0];
1.29 */
1.30 @@ -271,7 +271,7 @@
1.31 }
1.32 case SDL_GL_SWAP_CONTROL:
1.33 {
1.34 - long val;
1.35 + GLint val;
1.36 [ gl_context getValues: &val forParameter: NSOpenGLCPSwapInterval ];
1.37 *value = val;
1.38 return 0;