summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-29 11:31:33 -0700
committerVinson Lee <vlee@vmware.com>2010-08-29 11:31:33 -0700
commit0a46497a4ee3325fab47929cb17cfe2525e1fc33 (patch)
tree53df9789eb8baae1b4d6578cf9a8a6b816c16606 /src
parentc48ae0b6eddc71831ea0ea480a0177523ae6ee76 (diff)
ir_to_mesa: Initialize variable in ir_to_mesa_visitor::visit.
Fixes piglit glsl-fs-loop valgrind uninitialized value error on softpipe and llvmpipe.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
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 948f09a851..19f3847ab5 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -1553,7 +1553,7 @@ void
ir_to_mesa_visitor::visit(ir_constant *ir)
{
ir_to_mesa_src_reg src_reg;
- GLfloat stack_vals[4];
+ GLfloat stack_vals[4] = { 0 };
GLfloat *values = stack_vals;
unsigned int i;