src/video/cocoa/SDL_cocoaopengl.m
changeset 4925 514f811a4887
parent 4498 3d91e31fcf71
child 5246 58265e606e4e
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Wed Dec 01 12:22:29 2010 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Wed Dec 01 12:23:16 2010 -0800
     1.3 @@ -36,16 +36,6 @@
     1.4  
     1.5  #define DEFAULT_OPENGL  "/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib"
     1.6  
     1.7 -/* This is implemented in Mac OS X 10.3 and above */
     1.8 -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3
     1.9 -@implementation NSOpenGLContext(CGLContextAccess)
    1.10 -- (CGLContextObj)CGLContextObj;
    1.11 -{
    1.12 -    return _contextAuxiliary;
    1.13 -}
    1.14 -@end
    1.15 -#endif /* < 10.3 */
    1.16 -
    1.17  int
    1.18  Cocoa_GL_LoadLibrary(_THIS, const char *path)
    1.19  {
    1.20 @@ -180,7 +170,7 @@
    1.21      #endif
    1.22  
    1.23      {
    1.24 -        long cache_max = 64;
    1.25 +        GLint cache_max = 64;
    1.26          CGLContextObj ctx = [context CGLContextObj];
    1.27          CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max);
    1.28          CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max);