src/video/cocoa/SDL_cocoaopengl.m
changeset 7743 360acf8c1526
parent 7738 10981a646a6d
child 7746 6a05d7352575
--- a/src/video/cocoa/SDL_cocoaopengl.m	Fri Sep 13 17:42:46 2013 -0700
+++ b/src/video/cocoa/SDL_cocoaopengl.m	Sat Sep 14 01:30:57 2013 -0400
@@ -302,6 +302,10 @@
     GLint value;
     int status;
 
+    if (interval < 0) {  /* no extension for this on Mac OS X at the moment. */
+        return SDL_SetError("Late swap tearing currently unsupported");
+    }
+
     pool = [[NSAutoreleasePool alloc] init];
 
     nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();