src/video/cocoa/SDL_cocoaopengl.m
changeset 7412 50211a1fd557
parent 7408 c50e165abfdf
child 7594 6abcf951af68
     1.1 --- a/src/video/cocoa/SDL_cocoaopengl.m	Fri Jul 12 01:26:43 2013 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoaopengl.m	Thu Jul 11 22:59:20 2013 -0700
     1.3 @@ -178,7 +178,7 @@
     1.4      }
     1.5  
     1.6      if (_this->gl_config.share_with_current_context) {
     1.7 -        share_context = (NSOpenGLContext*)(_this->current_glctx);
     1.8 +        share_context = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
     1.9      }
    1.10  
    1.11      context = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext:share_context];