summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-05-26 09:20:39 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-05-26 09:20:39 +0200
commitc13e2f1b7504055472345af28fffcb28a0e771f2 (patch)
tree80253330ff289386499c66ca92cbbef8691a1807 /src/video_core
parentMerge pull request #3978 from ReinUsesLisp/write-rz (diff)
downloadyuzu-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.cpp4
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);
}