mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 07:44:03 -05:00
Fixed crash when shaders aren't available.
This commit is contained in:
@@ -274,7 +274,7 @@ GL_CreateShaderContext()
|
||||
}
|
||||
|
||||
if (!shaders_supported) {
|
||||
GL_DestroyShaderContext(ctx);
|
||||
SDL_free(ctx);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user