Fixed crash when shaders aren't available.

This commit is contained in:
Sam Lantinga
2011-02-09 10:13:26 -08:00
parent dac85c6457
commit 385e9bba2e

View File

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