Don't incorrectly report success for negative swap intervals on Mac OS X.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 14 Sep 2013 01:30:57 -0400
changeset 7743360acf8c1526
parent 7742 84e32c3d415c
child 7744 6a145dedc972
Don't incorrectly report success for negative swap intervals on Mac OS X.
src/video/cocoa/SDL_cocoaopengl.m
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Fri Sep 13 17:42:46 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Sat Sep 14 01:30:57 2013 -0400
     1.3 @@ -302,6 +302,10 @@
     1.4      GLint value;
     1.5      int status;
     1.6  
     1.7 +    if (interval < 0) {  /* no extension for this on Mac OS X at the moment. */
     1.8 +        return SDL_SetError("Late swap tearing currently unsupported");
     1.9 +    }
    1.10 +
    1.11      pool = [[NSAutoreleasePool alloc] init];
    1.12  
    1.13      nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();