comparison src/video/cocoa/SDL_cocoaopengl.m @ 2540:56cf872c723a gsoc2008_force_feedback

Synced with trunk.
author Edgar Simo <bobbens@gmail.com>
date Sun, 20 Jul 2008 21:34:04 +0000
parents 114a541cfae2
children 79c1bd651f04
comparison
equal deleted inserted replaced
2539:b4c41a7eea04 2540:56cf872c723a
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];