Mesa (7.9): tnl: Initialize gl_program_machine memory in run_vp.
Brian Paul
brianp at kemper.freedesktop.org
Tue Dec 14 23:32:19 UTC 2010
Module: Mesa
Branch: 7.9
Commit: 34e0da8e735271edce1e8ef757c1cdef445be7b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34e0da8e735271edce1e8ef757c1cdef445be7b8
Author: Brian Paul <brianp at vmware.com>
Date: Tue Dec 14 16:29:06 2010 -0700
tnl: Initialize gl_program_machine memory in run_vp.
Fixes piglit valgrind glsl-array-bounds-04 failure (FDO bug 29946).
NOTE:
This is a candidate for the 7.10 branch.
This is a candidate for the 7.9 branch.
(cherry picked from commit ef3f7e61b314236cbb7ed2cf24d34c6f90d9cfca)
---
src/mesa/tnl/t_vb_program.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index f3a338e..280ec13 100644
--- a/src/mesa/tnl/t_vb_program.c
+++ b/src/mesa/tnl/t_vb_program.c
@@ -311,7 +311,7 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
struct vp_stage_data *store = VP_STAGE_DATA(stage);
struct vertex_buffer *VB = &tnl->vb;
struct gl_vertex_program *program = ctx->VertexProgram._Current;
- struct gl_program_machine machine;
+ struct gl_program_machine machine = { 0 };
GLuint outputs[VERT_RESULT_MAX], numOutputs;
GLuint i, j;
More information about the mesa-commit
mailing list