mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
macOS: Fix compilation when using the 10.9 SDK or older.
This commit is contained in:
parent
cf87d5764d
commit
9d7b26155a
@ -322,7 +322,7 @@ Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
|
|||||||
|
|
||||||
/* vsync is handled separately by synchronizing with a display link. */
|
/* vsync is handled separately by synchronizing with a display link. */
|
||||||
interval = 0;
|
interval = 0;
|
||||||
[context setValues:&interval forParameter:NSOpenGLContextParameterSwapInterval];
|
[context setValues:&interval forParameter:NSOpenGLCPSwapInterval];
|
||||||
|
|
||||||
if ( Cocoa_GL_MakeCurrent(_this, window, context) < 0 ) {
|
if ( Cocoa_GL_MakeCurrent(_this, window, context) < 0 ) {
|
||||||
Cocoa_GL_DeleteContext(_this, context);
|
Cocoa_GL_DeleteContext(_this, context);
|
||||||
|
Loading…
Reference in New Issue
Block a user