From 9d7b26155a59cdfb7de0d7cba5ed59402762f0ee Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Wed, 17 Apr 2019 20:14:40 -0300 Subject: [PATCH] macOS: Fix compilation when using the 10.9 SDK or older. --- src/video/cocoa/SDL_cocoaopengl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoaopengl.m b/src/video/cocoa/SDL_cocoaopengl.m index f4acd624a..c014308d3 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);