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