mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 00:32:48 +01:00
renderer_opengl: delete shader source after linking
This commit is contained in:
parent
1dc4ff0974
commit
b9360681df
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue