瀏覽代碼

gl_shader_manager: Unbind GLSL program when binding a host pipeline

Fixes regression in Link's Awakening caused by 420cc13248350ef5c2d19e0b961cb4185cd16a8a
ReinUsesLisp 6 年之前
父節點
當前提交
c13e2f1b75
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/video_core/renderer_opengl/gl_shader_manager.cpp

+ 4 - 0
src/video_core/renderer_opengl/gl_shader_manager.cpp

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