Mercurial > sdl-ios-xcode
changeset 4370:8d67936e32ec SDL-1.2
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 22 Oct 2009 04:53:44 +0000 |
parents | f14cf9d71233 |
children | 6f74b80cca1d |
files | src/video/quartz/SDL_QuartzGL.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzGL.m Tue Oct 20 03:47:29 2009 +0000 +++ b/src/video/quartz/SDL_QuartzGL.m Thu Oct 22 04:53:44 2009 +0000 @@ -153,7 +153,7 @@ * http://lists.apple.com/archives/mac-opengl/2006/Jan/msg00080.html ) */ if ( this->gl_config.swap_control >= 0 ) { - long value; + GLint value; value = this->gl_config.swap_control; [ gl_context setValues: &value forParameter: NSOpenGLCPSwapInterval ]; } @@ -175,7 +175,7 @@ #endif { - long cache_max = 64; + GLint cache_max = 64; CGLContextObj ctx = QZ_GetCGLContextObj(gl_context); CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max); CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max); @@ -261,7 +261,7 @@ } case SDL_GL_ACCELERATED_VISUAL: { - long val; + GLint val; /* FIXME: How do we get this information here? [fmt getValues: &val forAttribute: NSOpenGLPFAAccelerated attr forVirtualScreen: 0]; */ @@ -271,7 +271,7 @@ } case SDL_GL_SWAP_CONTROL: { - long val; + GLint val; [ gl_context getValues: &val forParameter: NSOpenGLCPSwapInterval ]; *value = val; return 0;