src/video/cocoa/SDL_cocoaopengl.m
changeset 6382 64d54101773a
parent 6260 fd494c5f305b
child 6567 d50613615139
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Tue Jul 31 16:55:09 2012 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Wed Aug 01 20:29:36 2012 -0400
     1.3 @@ -250,7 +250,7 @@
     1.4      NSAutoreleasePool *pool;
     1.5      NSOpenGLContext *nscontext;
     1.6      GLint value;
     1.7 -    int status;
     1.8 +    int status = 0;
     1.9  
    1.10      pool = [[NSAutoreleasePool alloc] init];
    1.11  
    1.12 @@ -258,9 +258,6 @@
    1.13      if (nscontext != nil) {
    1.14          [nscontext getValues:&value forParameter:NSOpenGLCPSwapInterval];
    1.15          status = (int)value;
    1.16 -    } else {
    1.17 -        SDL_SetError("No current OpenGL context");
    1.18 -        status = -1;
    1.19      }
    1.20  
    1.21      [pool release];