src/video/SDL_renderer_gl.c
changeset 2328 91e601d9df8b
parent 2295 dbc6d1893869
child 2778 38dfc890ee6b
equal deleted inserted replaced
2327:7b53a8401195 2328:91e601d9df8b
   945 {
   945 {
   946     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
   946     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
   947 
   947 
   948     if (data) {
   948     if (data) {
   949         if (data->context) {
   949         if (data->context) {
   950             SDL_GL_MakeCurrent(0, NULL);
   950             /* SDL_GL_MakeCurrent(0, NULL); *//* doesn't do anything */
   951             SDL_GL_DeleteContext(data->context);
   951             SDL_GL_DeleteContext(data->context);
   952         }
   952         }
   953         SDL_free(data);
   953         SDL_free(data);
   954     }
   954     }
   955     SDL_free(renderer);
   955     SDL_free(renderer);