changeset 5242:55b31686f82b

Fixed crash when shaders aren't available.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 09 Feb 2011 10:13:26 -0800
parents c7be6ca3a0b8
children c0e9d3897a85
files src/render/opengl/SDL_shaders_gl.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }