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

This commit is contained in:
Jules Blok committed 2014-11-23 14:27:39 +01:00
1 parent f74d1b16ed
commit aa57feb9a8
1 file changed
+2 -1
@@ -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);