src/video/cocoa/SDL_cocoaopengl.m
changeset 10690 23a825f341e6
parent 10008 fb4e35d0d523
child 10737 3406a0f8b041
equal deleted inserted replaced
10689:69d6c1c7a2bf 10690:23a825f341e6
   381     }
   381     }
   382 
   382 
   383     return status;
   383     return status;
   384 }}
   384 }}
   385 
   385 
   386 void
   386 int
   387 Cocoa_GL_SwapWindow(_THIS, SDL_Window * window)
   387 Cocoa_GL_SwapWindow(_THIS, SDL_Window * window)
   388 { @autoreleasepool
   388 { @autoreleasepool
   389 {
   389 {
   390     SDLOpenGLContext* nscontext = (SDLOpenGLContext*)SDL_GL_GetCurrentContext();
   390     SDLOpenGLContext* nscontext = (SDLOpenGLContext*)SDL_GL_GetCurrentContext();
   391     [nscontext flushBuffer];
   391     [nscontext flushBuffer];
   392     [nscontext updateIfNeeded];
   392     [nscontext updateIfNeeded];
       
   393     return 0;
   393 }}
   394 }}
   394 
   395 
   395 void
   396 void
   396 Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context)
   397 Cocoa_GL_DeleteContext(_THIS, SDL_GLContext context)
   397 { @autoreleasepool
   398 { @autoreleasepool