1
1
Fork 0
forked from suyu/suyu

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:
ReinUsesLisp 2020-05-26 04:20:39 -03:00
parent 86345c126a
commit c13e2f1b75

View file

@ -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);
}