src/video/windows/SDL_windowsopengl.c
changeset 7412 50211a1fd557
parent 7401 698995795574
child 7553 f0091f8eae33
equal deleted inserted replaced
7410:a9878830f05e 7412:50211a1fd557
   533 {
   533 {
   534     HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
   534     HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
   535     HGLRC context, share_context;
   535     HGLRC context, share_context;
   536 
   536 
   537     if (_this->gl_config.share_with_current_context) {
   537     if (_this->gl_config.share_with_current_context) {
   538         share_context = (HGLRC)(_this->current_glctx);
   538         share_context = (HGLRC)SDL_GL_GetCurrentContext();
   539     } else {
   539     } else {
   540         share_context = 0;
   540         share_context = 0;
   541     }
   541     }
   542 
   542 
   543     if (_this->gl_config.major_version < 3 &&
   543     if (_this->gl_config.major_version < 3 &&