diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-26 09:20:39 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-05-26 09:20:39 +0200 |
commit | c13e2f1b7504055472345af28fffcb28a0e771f2 (patch) | |
tree | 80253330ff289386499c66ca92cbbef8691a1807 /src/video_core | |
parent | Merge pull request #3978 from ReinUsesLisp/write-rz (diff) | |
download | yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.gz yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.bz2 yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.lz yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.xz yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.tar.zst yuzu-c13e2f1b7504055472345af28fffcb28a0e771f2.zip |
Diffstat (limited to 'src/video_core')
-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) { old_state.geometry = 0; glDisable(GL_GEOMETRY_PROGRAM_NV); } + } else { + if (!is_graphics_bound) { + glUseProgram(0); + } } glBindProgramPipeline(pipeline); } |