mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-01-28 18:46:55 -06:00
Merge pull request #8684 from liamwhite/delete-shader
renderer_opengl: delete shader source after linking
This commit is contained in:
commit
9dcfef744c
@ -17,6 +17,7 @@ static OGLProgram LinkSeparableProgram(GLuint shader) {
|
|||||||
glProgramParameteri(program.handle, GL_PROGRAM_SEPARABLE, GL_TRUE);
|
glProgramParameteri(program.handle, GL_PROGRAM_SEPARABLE, GL_TRUE);
|
||||||
glAttachShader(program.handle, shader);
|
glAttachShader(program.handle, shader);
|
||||||
glLinkProgram(program.handle);
|
glLinkProgram(program.handle);
|
||||||
|
glDetachShader(program.handle, shader);
|
||||||
if (!Settings::values.renderer_debug) {
|
if (!Settings::values.renderer_debug) {
|
||||||
return program;
|
return program;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user