ProgramShaderCache: Abort shader compilation if geometry shader failed to compile.

This commit is contained in:
Jules Blok 2014-11-04 00:46:43 +01:00
parent 6642af2404
commit 4d075c2efb
1 changed files with 1 additions and 1 deletions

View File

@ -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);