# HG changeset patch # User Sam Lantinga # Date 1297275206 28800 # Node ID 55b31686f82b1b6195a2474692396771bed3b06a # Parent c7be6ca3a0b843c556d855c89ca8b842b840b9ad Fixed crash when shaders aren't available. diff -r c7be6ca3a0b8 -r 55b31686f82b 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; }