mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
ProgramShaderCache: Don't call glAttachShader if no geometry shader was compiled.
This commit is contained in:
parent
f74d1b16ed
commit
aa57feb9a8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user