summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-05-28 18:15:22 +0200
committerGitHub <noreply@github.com>2020-05-28 18:15:22 +0200
commit099ac9c2a801115a9734833552286f1f804e4403 (patch)
treee45122fb77153923eab2750eb0d09a1209198636 /src/video_core
parentMerge pull request #3954 from Morph1984/log-memory-amount (diff)
parentgl_shader_manager: Unbind GLSL program when binding a host pipeline (diff)
downloadyuzu-099ac9c2a801115a9734833552286f1f804e4403.tar
yuzu-099ac9c2a801115a9734833552286f1f804e4403.tar.gz
yuzu-099ac9c2a801115a9734833552286f1f804e4403.tar.bz2
yuzu-099ac9c2a801115a9734833552286f1f804e4403.tar.lz
yuzu-099ac9c2a801115a9734833552286f1f804e4403.tar.xz
yuzu-099ac9c2a801115a9734833552286f1f804e4403.tar.zst
yuzu-099ac9c2a801115a9734833552286f1f804e4403.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);
}