ProgramShaderCache: Don't call glAttachShader if no geometry shader was compiled.

This commit is contained in:
Jules Blok 2014-10-31 16:51:37 +01:00
parent f74d1b16ed
commit aa57feb9a8

View File

@ -264,7 +264,8 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
glAttachShader(pid, vsid);
glAttachShader(pid, psid);
glAttachShader(pid, gsid);
if (gsid)
glAttachShader(pid, gsid);
if (g_ogl_config.bSupportsGLSLCache)
glProgramParameteri(pid, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE);