renderer_opengl: delete shader source after linking

This commit is contained in:
Liam 2022-07-30 12:26:43 -04:00
parent 1dc4ff0974
commit b9360681df

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