Fixed crash when shaders aren't available.

This commit is contained in:
Sam Lantinga 2011-02-09 10:13:26 -08:00
parent a429b886d4
commit 85a93efaec

View file

@ -274,7 +274,7 @@ GL_CreateShaderContext()
}
if (!shaders_supported) {
GL_DestroyShaderContext(ctx);
SDL_free(ctx);
return NULL;
}