diff options
| author | 2020-05-26 04:20:39 -0300 | |
|---|---|---|
| committer | 2020-05-26 04:20:39 -0300 | |
| commit | c13e2f1b7504055472345af28fffcb28a0e771f2 (patch) | |
| tree | 80253330ff289386499c66ca92cbbef8691a1807 /src | |
| parent | Merge pull request #3978 from ReinUsesLisp/write-rz (diff) | |
| download | yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.gz yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.xz yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.zip | |
gl_shader_manager: Unbind GLSL program when binding a host pipeline
Fixes regression in Link's Awakening caused by 420cc13248350ef5c2d19e0b961cb4185cd16a8a
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index 96605db84..8e754fa90 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp | |||
| @@ -47,6 +47,10 @@ void ProgramManager::BindHostPipeline(GLuint pipeline) { | |||
| 47 | old_state.geometry = 0; | 47 | old_state.geometry = 0; |
| 48 | glDisable(GL_GEOMETRY_PROGRAM_NV); | 48 | glDisable(GL_GEOMETRY_PROGRAM_NV); |
| 49 | } | 49 | } |
| 50 | } else { | ||
| 51 | if (!is_graphics_bound) { | ||
| 52 | glUseProgram(0); | ||
| 53 | } | ||
| 50 | } | 54 | } |
| 51 | glBindProgramPipeline(pipeline); | 55 | glBindProgramPipeline(pipeline); |
| 52 | } | 56 | } |