summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Szpakowski <slime73@gmail.com>2019-04-17 20:14:40 -0300
committerAlex Szpakowski <slime73@gmail.com>2019-04-17 20:14:40 -0300
commit802a29e218e02bd8439a7280516152fd8738fbef (patch)
tree1d9965721aba7fcdbb3ba8db24bfe840123a906f
parentd45819456d59ced5f96e9ab863487ce2f1510654 (diff)
macOS: Fix compilation when using the 10.9 SDK or older.
-rw-r--r--src/video/cocoa/SDL_cocoaopengl.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/SDL_cocoaopengl.m b/src/video/cocoa/SDL_cocoaopengl.m
index f4acd624a8..c014308d3f 100644
--- a/src/video/cocoa/SDL_cocoaopengl.m
+++ b/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);