src/video/quartz/SDL_QuartzGL.m
branchSDL-1.2
changeset 4370 8d67936e32ec
parent 4204 976bc19f8f6b
child 6137 4720145f848b
     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;