src/render/opengl/SDL_render_gl.c
changeset 7091 ff07fad908f8
parent 7037 3fedf1f25b94
child 7141 e276777b4247
equal deleted inserted replaced
7090:c4ac8be0065b 7091:ff07fad908f8
  1239                 /* delete the framebuffer object */
  1239                 /* delete the framebuffer object */
  1240                 data->glDeleteFramebuffersEXT(1, &data->framebuffers->FBO);
  1240                 data->glDeleteFramebuffersEXT(1, &data->framebuffers->FBO);
  1241                 GL_CheckError("", renderer);
  1241                 GL_CheckError("", renderer);
  1242                 SDL_free(data->framebuffers);
  1242                 SDL_free(data->framebuffers);
  1243                 data->framebuffers = nextnode;
  1243                 data->framebuffers = nextnode;
  1244             }            
  1244             }
  1245             /* SDL_GL_MakeCurrent(0, NULL); *//* doesn't do anything */
       
  1246             SDL_GL_DeleteContext(data->context);
  1245             SDL_GL_DeleteContext(data->context);
  1247         }
  1246         }
  1248         SDL_free(data);
  1247         SDL_free(data);
  1249     }
  1248     }
  1250     SDL_free(renderer);
  1249     SDL_free(renderer);