Commit 85a93efa authored by Sam Lantinga's avatar Sam Lantinga

Fixed crash when shaders aren't available.

parent a429b886
...@@ -274,7 +274,7 @@ GL_CreateShaderContext() ...@@ -274,7 +274,7 @@ GL_CreateShaderContext()
} }
if (!shaders_supported) { if (!shaders_supported) {
GL_DestroyShaderContext(ctx); SDL_free(ctx);
return NULL; return NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment