src/render/opengl/SDL_render_gl.c
changeset 5566 0d221d6ffac8
parent 5535 96594ac5fd1a
child 5981 75caa8a7d559
--- a/src/render/opengl/SDL_render_gl.c	Sat Jul 16 11:52:09 2011 -0700
+++ b/src/render/opengl/SDL_render_gl.c	Sat Jul 16 14:59:12 2011 -0700
@@ -1011,6 +1011,9 @@
     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
 
     if (data) {
+        if (data->shaders) {
+            GL_DestroyShaderContext(data->shaders);
+        }
         if (data->context) {
             /* SDL_GL_MakeCurrent(0, NULL); *//* doesn't do anything */
             SDL_GL_DeleteContext(data->context);