mirror of https://git.suyu.dev/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:
parent
86345c126a
commit
c13e2f1b75
|
@ -47,6 +47,10 @@ void ProgramManager::BindHostPipeline(GLuint pipeline) {
|
||||||
old_state.geometry = 0;
|
old_state.geometry = 0;
|
||||||
glDisable(GL_GEOMETRY_PROGRAM_NV);
|
glDisable(GL_GEOMETRY_PROGRAM_NV);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (!is_graphics_bound) {
|
||||||
|
glUseProgram(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
glBindProgramPipeline(pipeline);
|
glBindProgramPipeline(pipeline);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue