src/video/cocoa/SDL_cocoaopengl.m
changeset 2703 18a472b6d745
parent 2178 114a541cfae2
child 2738 79c1bd651f04
equal deleted inserted replaced
2702:11eb9ae3c88c 2703:18a472b6d745
   286 int
   286 int
   287 Cocoa_GL_SetSwapInterval(_THIS, int interval)
   287 Cocoa_GL_SetSwapInterval(_THIS, int interval)
   288 {
   288 {
   289     NSAutoreleasePool *pool;
   289     NSAutoreleasePool *pool;
   290     NSOpenGLContext *nscontext;
   290     NSOpenGLContext *nscontext;
   291     long value;
   291     GLint value;
   292     int status;
   292     int status;
   293 
   293 
   294     pool = [[NSAutoreleasePool alloc] init];
   294     pool = [[NSAutoreleasePool alloc] init];
   295 
   295 
   296     nscontext = [NSOpenGLContext currentContext];
   296     nscontext = [NSOpenGLContext currentContext];
   310 int
   310 int
   311 Cocoa_GL_GetSwapInterval(_THIS)
   311 Cocoa_GL_GetSwapInterval(_THIS)
   312 {
   312 {
   313     NSAutoreleasePool *pool;
   313     NSAutoreleasePool *pool;
   314     NSOpenGLContext *nscontext;
   314     NSOpenGLContext *nscontext;
   315     long value;
   315     GLint value;
   316     int status;
   316     int status;
   317 
   317 
   318     pool = [[NSAutoreleasePool alloc] init];
   318     pool = [[NSAutoreleasePool alloc] init];
   319 
   319 
   320     nscontext = [NSOpenGLContext currentContext];
   320     nscontext = [NSOpenGLContext currentContext];