aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMorph <[email protected]>2022-07-30 21:36:26 -0400
committerGitHub <[email protected]>2022-07-30 21:36:26 -0400
commit9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd (patch)
tree4a063bb92af32ab7a3f0227954510ea1b08fe08d /src
parent69e04da5373b0ea5b71aed2d70c7aa76dd2be1b8 (diff)
parentb9360681df85c5cb10a75aac0c4582bf607a7d7d (diff)
downloadyuzu-android-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.tar.gz
yuzu-android-9dcfef744c3dc9c1a8c4d9a16bb8eafad9490cfd.zip
Merge pull request #8684 from liamwhite/delete-shader
renderer_opengl: delete shader source after linking
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp1
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;
}