diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-07-31 03:36:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 03:36:26 +0200 |
commit | 9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd (patch) | |
tree | 4a063bb92af32ab7a3f0227954510ea1b08fe08d /src/video_core/renderer_opengl/gl_shader_util.cpp | |
parent | Merge pull request #8640 from lat9nq/vcpkg-extra (diff) | |
parent | renderer_opengl: delete shader source after linking (diff) | |
download | yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.gz yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.bz2 yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.lz yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.xz yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.zst yuzu-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_util.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp index f83ad0a5b..a0d9d10ef 100644 --- a/src/video_core/renderer_opengl/gl_shader_util.cpp +++ b/src/video_core/renderer_opengl/gl_shader_util.cpp @@ -17,6 +17,7 @@ static OGLProgram LinkSeparableProgram(GLuint shader) { glProgramParameteri(program.handle, GL_PROGRAM_SEPARABLE, GL_TRUE); glAttachShader(program.handle, shader); glLinkProgram(program.handle); + glDetachShader(program.handle, shader); if (!Settings::values.renderer_debug) { return program; } |