summaryrefslogtreecommitdiff
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-08-29 12:19:57 -0700
committerVinson Lee <vlee@vmware.com>2010-08-29 12:19:57 -0700
commit2d0ef6bfee64b6889cbfb69762f167a6dfc20131 (patch)
tree468a233d0c9364390c65e96922846a1c8d38d654 /src/glsl
parentb43611b79c1f0a5caff80c17c9e7840a718f07c9 (diff)
glsl: Initialize variable in ir_swizzle::constant_expression_value.
Complete initialize data passed to ir_constant constructor. Fixes piglit glsl-mat-from-int-ctor-02 valgrind unintialized variable error with softpipe and llvmpipe.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ir_constant_expression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp
index 5ec60c522f..458dca7977 100644
--- a/src/glsl/ir_constant_expression.cpp
+++ b/src/glsl/ir_constant_expression.cpp
@@ -653,7 +653,7 @@ ir_swizzle::constant_expression_value()
ir_constant *v = this->val->constant_expression_value();
if (v != NULL) {
- ir_constant_data data;
+ ir_constant_data data = { { 0 } };
const unsigned swiz_idx[4] = {
this->mask.x, this->mask.y, this->mask.z, this->mask.w