Browse Source

gl_shader_manager: Unbind GLSL program when binding a host pipeline

Fixes regression in Link's Awakening caused by 420cc13248
pull/15/merge
ReinUsesLisp 6 years ago
parent
commit
c13e2f1b75
  1. 4
      src/video_core/renderer_opengl/gl_shader_manager.cpp

4
src/video_core/renderer_opengl/gl_shader_manager.cpp

@ -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…
Cancel
Save