macOS: Fix compilation when using the 10.9 SDK or older.
authorAlex Szpakowski <slime73@gmail.com>
Wed, 17 Apr 2019 20:14:40 -0300
changeset 12706d7782848eb50
parent 12705 7d349998be25
child 12707 8703488687ca
macOS: Fix compilation when using the 10.9 SDK or older.
src/video/cocoa/SDL_cocoaopengl.m
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Tue Apr 16 20:00:14 2019 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Wed Apr 17 20:14:40 2019 -0300
     1.3 @@ -322,7 +322,7 @@
     1.4  
     1.5      /* vsync is handled separately by synchronizing with a display link. */
     1.6      interval = 0;
     1.7 -    [context setValues:&interval forParameter:NSOpenGLContextParameterSwapInterval];
     1.8 +    [context setValues:&interval forParameter:NSOpenGLCPSwapInterval];
     1.9  
    1.10      if ( Cocoa_GL_MakeCurrent(_this, window, context) < 0 ) {
    1.11          Cocoa_GL_DeleteContext(_this, context);