Fixed crash when shaders aren't available.
This commit is contained in:
parent
a429b886d4
commit
85a93efaec
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ GL_CreateShaderContext()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!shaders_supported) {
|
if (!shaders_supported) {
|
||||||
GL_DestroyShaderContext(ctx);
|
SDL_free(ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue