diff options
author | Eric Anholt <[email protected]> | 2012-01-12 13:10:26 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-01-18 09:59:12 -0800 |
commit | 5a0f395bcf70e524492e766a07cf0b816b42a20d (patch) | |
tree | 023a18cf482c7c3112191dda9bdf2a44e54ea4ef | |
parent | 0f68d88034a9815445ae0a35aacc500f82f33a18 (diff) |
glsl: Fix leak of LinkedTransformFeedback.Varyings.
I copy-and-pasted the thing I was allocating for as the context, so
the first time it would be NULL (root of a ralloc context) and they'd
chain off each other from then on.
NOTE: This is a candidate for the 8.0 branch.
-rw-r--r-- | src/glsl/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 0d85aeee6c9..adedfe6f33a 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1984,7 +1984,7 @@ store_tfeedback_info(struct gl_context *ctx, struct gl_shader_program *prog, separate_attribs_mode ? num_tfeedback_decls : 1; prog->LinkedTransformFeedback.Varyings = - rzalloc_array(prog->LinkedTransformFeedback.Varyings, + rzalloc_array(prog, struct gl_transform_feedback_varying_info, num_tfeedback_decls); |