src/video/cocoa/SDL_cocoaopengl.m
changeset 7108 732d2cac80c0
parent 7085 152cc7ddfa57
child 7152 e9ed46195235
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Wed Apr 24 12:20:51 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Wed Apr 24 23:11:48 2013 -0400
     1.3 @@ -192,31 +192,6 @@
     1.4          return NULL;
     1.5      }
     1.6  
     1.7 -    /*
     1.8 -     * Wisdom from Apple engineer in reference to UT2003's OpenGL performance:
     1.9 -     *  "You are blowing a couple of the internal OpenGL function caches. This
    1.10 -     *  appears to be happening in the VAO case.  You can tell OpenGL to up
    1.11 -     *  the cache size by issuing the following calls right after you create
    1.12 -     *  the OpenGL context.  The default cache size is 16."    --ryan.
    1.13 -     */
    1.14 -
    1.15 -    #ifndef GLI_ARRAY_FUNC_CACHE_MAX
    1.16 -    #define GLI_ARRAY_FUNC_CACHE_MAX 284
    1.17 -    #endif
    1.18 -
    1.19 -    #ifndef GLI_SUBMIT_FUNC_CACHE_MAX
    1.20 -    #define GLI_SUBMIT_FUNC_CACHE_MAX 280
    1.21 -    #endif
    1.22 -
    1.23 -    {
    1.24 -        GLint cache_max = 64;
    1.25 -        CGLContextObj ctx = [context CGLContextObj];
    1.26 -        CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max);
    1.27 -        CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max);
    1.28 -    }
    1.29 -
    1.30 -    /* End Wisdom from Apple Engineer section. --ryan. */
    1.31 -
    1.32      [pool release];
    1.33  
    1.34      if ( Cocoa_GL_MakeCurrent(_this, window, context) < 0 ) {