mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 08:42:45 +01:00
gl_shader_manager: Unbind GLSL program when binding a host pipeline
Fixes regression in Link's Awakening caused by 420cc13248
This commit is contained in:
parent
86345c126a
commit
c13e2f1b75
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,10 @@ void ProgramManager::BindHostPipeline(GLuint pipeline) {
|
|||
old_state.geometry = 0;
|
||||
glDisable(GL_GEOMETRY_PROGRAM_NV);
|
||||
}
|
||||
} else {
|
||||
if (!is_graphics_bound) {
|
||||
glUseProgram(0);
|
||||
}
|
||||
}
|
||||
glBindProgramPipeline(pipeline);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue