src/video/cocoa/SDL_cocoaopengl.m
changeset 7412 50211a1fd557
parent 7408 c50e165abfdf
child 7594 6abcf951af68
equal deleted inserted replaced
7410:a9878830f05e 7412:50211a1fd557
   176         [pool release];
   176         [pool release];
   177         return NULL;
   177         return NULL;
   178     }
   178     }
   179 
   179 
   180     if (_this->gl_config.share_with_current_context) {
   180     if (_this->gl_config.share_with_current_context) {
   181         share_context = (NSOpenGLContext*)(_this->current_glctx);
   181         share_context = (NSOpenGLContext*)SDL_GL_GetCurrentContext();
   182     }
   182     }
   183 
   183 
   184     context = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext:share_context];
   184     context = [[NSOpenGLContext alloc] initWithFormat:fmt shareContext:share_context];
   185 
   185 
   186     [fmt release];
   186     [fmt release];