ProgramShaderCache: Abort shader compilation if geometry shader failed to compile.
This commit is contained in:
parent
6642af2404
commit
4d075c2efb
|
@ -252,7 +252,7 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
|
|||
if (gcode)
|
||||
gsid = CompileSingleShader(GL_GEOMETRY_SHADER, gcode);
|
||||
|
||||
if (!vsid || !psid)
|
||||
if (!vsid || !psid || (gcode && !gsid))
|
||||
{
|
||||
glDeleteShader(vsid);
|
||||
glDeleteShader(psid);
|
||||
|
|
Loading…
Reference in New Issue