src/video/cocoa/SDL_cocoaopengl.m
changeset 7743 360acf8c1526
parent 7738 10981a646a6d
child 7746 6a05d7352575
equal deleted inserted replaced
7742:84e32c3d415c 7743:360acf8c1526
   300     NSAutoreleasePool *pool;
   300     NSAutoreleasePool *pool;
   301     NSOpenGLContext *nscontext;
   301     NSOpenGLContext *nscontext;
   302     GLint value;
   302     GLint value;
   303     int status;
   303     int status;
   304 
   304 
       
   305     if (interval < 0) {  /* no extension for this on Mac OS X at the moment. */
       
   306         return SDL_SetError("Late swap tearing currently unsupported");
       
   307     }
       
   308 
   305     pool = [[NSAutoreleasePool alloc] init];
   309     pool = [[NSAutoreleasePool alloc] init];
   306 
   310 
   307     nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
   311     nscontext = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
   308     if (nscontext != nil) {
   312     if (nscontext != nil) {
   309         value = interval;
   313         value = interval;