ProgramShaderCache: Don't call glAttachShader if no geometry shader was compiled.
This commit is contained in:
parent
f74d1b16ed
commit
aa57feb9a8
|
@ -264,6 +264,7 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
|
||||||
|
|
||||||
glAttachShader(pid, vsid);
|
glAttachShader(pid, vsid);
|
||||||
glAttachShader(pid, psid);
|
glAttachShader(pid, psid);
|
||||||
|
if (gsid)
|
||||||
glAttachShader(pid, gsid);
|
glAttachShader(pid, gsid);
|
||||||
|
|
||||||
if (g_ogl_config.bSupportsGLSLCache)
|
if (g_ogl_config.bSupportsGLSLCache)
|
||||||
|
|
Loading…
Reference in New Issue