Преглед на файлове

macOS: Fix compilation when using the 10.9 SDK or older.

Alex Szpakowski преди 6 години
родител
ревизия
9d7b26155a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/video/cocoa/SDL_cocoaopengl.m

+ 1 - 1
src/video/cocoa/SDL_cocoaopengl.m

@@ -322,7 +322,7 @@ Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
 
     /* vsync is handled separately by synchronizing with a display link. */
     interval = 0;
-    [context setValues:&interval forParameter:NSOpenGLContextParameterSwapInterval];
+    [context setValues:&interval forParameter:NSOpenGLCPSwapInterval];
 
     if ( Cocoa_GL_MakeCurrent(_this, window, context) < 0 ) {
         Cocoa_GL_DeleteContext(_this, context);