mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-03 08:52:39 +00:00
ProgramShaderCache: Don't call glAttachShader if no geometry shader was compiled.
This commit is contained in:
parent
f74d1b16ed
commit
aa57feb9a8
1 changed files with 2 additions and 1 deletions
|
@ -264,7 +264,8 @@ bool ProgramShaderCache::CompileShader(SHADER& shader, const char* vcode, const
|
||||||
|
|
||||||
glAttachShader(pid, vsid);
|
glAttachShader(pid, vsid);
|
||||||
glAttachShader(pid, psid);
|
glAttachShader(pid, psid);
|
||||||
glAttachShader(pid, gsid);
|
if (gsid)
|
||||||
|
glAttachShader(pid, gsid);
|
||||||
|
|
||||||
if (g_ogl_config.bSupportsGLSLCache)
|
if (g_ogl_config.bSupportsGLSLCache)
|
||||||
glProgramParameteri(pid, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE);
|
glProgramParameteri(pid, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, GL_TRUE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue