diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-28 18:15:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 18:15:22 +0200 |
commit | 099ac9c2a801115a9734833552286f1f804e4403 (patch) | |
tree | e45122fb77153923eab2750eb0d09a1209198636 | |
parent | Merge pull request #3954 from Morph1984/log-memory-amount (diff) | |
parent | gl_shader_manager: Unbind GLSL program when binding a host pipeline (diff) | |
download | yuzu-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 |
-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); } |