Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash when shaders aren't available.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 9, 2011
1 parent b55b301 commit e10581c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/opengl/SDL_shaders_gl.c
Expand Up @@ -274,7 +274,7 @@ GL_CreateShaderContext()
}

if (!shaders_supported) {
GL_DestroyShaderContext(ctx);
SDL_free(ctx);
return NULL;
}

Expand Down

0 comments on commit e10581c

Please sign in to comment.