diff options
author | Eric Anholt <[email protected]> | 2010-08-18 12:02:35 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-18 14:16:07 -0700 |
commit | 5d0f430e8ed01db29d11d22e4b6c3760d8c39f8f (patch) | |
tree | b36d56d5d4ad7638570b8dd0f5da3df1a0b3a266 /src/mesa | |
parent | 0b09e6410f1173c2f69b601e43c5b14d8ad97345 (diff) |
mesa: Free old linked shaders when relinking new shaders.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 4f4994392dd..394370d46d4 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2740,7 +2740,7 @@ _mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog) _mesa_reference_fragprog(ctx, &prog->FragmentProgram, NULL); if (prog->LinkStatus) { - link_shaders(prog); + link_shaders(ctx, prog); /* We don't use the linker's uniforms list, and cook up our own at * generate time. |