Fixed crash when shaders aren't available.
authorSam Lantinga <slouken@libsdl.org>
Wed, 09 Feb 2011 10:13:26 -0800
changeset 5237 55b31686f82b
parent 5236 c7be6ca3a0b8
child 5238 c0e9d3897a85
Fixed crash when shaders aren't available.
src/render/opengl/SDL_shaders_gl.c
--- a/src/render/opengl/SDL_shaders_gl.c	Wed Feb 09 09:36:40 2011 -0800
+++ b/src/render/opengl/SDL_shaders_gl.c	Wed Feb 09 10:13:26 2011 -0800
@@ -274,7 +274,7 @@
     }
 
     if (!shaders_supported) {
-        GL_DestroyShaderContext(ctx);
+        SDL_free(ctx);
         return NULL;
     }