Skip to content

Commit

Permalink
Don't incorrectly report success for negative swap intervals on Mac O…
Browse files Browse the repository at this point in the history
…S X.
  • Loading branch information
icculus committed Sep 14, 2013
1 parent fae4190 commit bfe1b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/cocoa/SDL_cocoaopengl.m
Expand Up @@ -302,6 +302,10 @@ - (void)setWindow:(SDL_Window *)newWindow
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();
Expand Down

0 comments on commit bfe1b1d

Please sign in to comment.