Explorar o código

renderer_opengl: delete shader source after linking

Liam %!s(int64=4) %!d(string=hai) anos
pai
achega
b9360681df
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/video_core/renderer_opengl/gl_shader_util.cpp

+ 1 - 0
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;
     }