Merge pull request #8684 from liamwhite/delete-shader

renderer_opengl: delete shader source after linking
This commit is contained in:
Morph 2022-07-30 21:36:26 -04:00 committed by GitHub
commit 9dcfef744c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}