mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
ProgramShaderCache: Abort shader compilation if geometry shader failed to compile.
This commit is contained in:
parent
6642af2404
commit
4d075c2efb
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
|
||||||
if (gcode)
|
if (gcode)
|
||||||
gsid = CompileSingleShader(GL_GEOMETRY_SHADER, gcode);
|
gsid = CompileSingleShader(GL_GEOMETRY_SHADER, gcode);
|
||||||
|
|
||||||
if (!vsid || !psid)
|
if (!vsid || !psid || (gcode && !gsid))
|
||||||
{
|
{
|
||||||
glDeleteShader(vsid);
|
glDeleteShader(vsid);
|
||||||
glDeleteShader(psid);
|
glDeleteShader(psid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue