mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 13:45:45 +00:00
gl_shader_manager: Unbind GLSL program when binding a host pipeline
Fixes regression in Link's Awakening caused by a075bbcf36
This commit is contained in:
parent
2736532246
commit
1188c79557
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…
Add table
Add a link
Reference in a new issue