summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-29 14:05:07 -0700
committerVinson Lee <[email protected]>2010-08-29 14:05:07 -0700
commit0c93e69b25559225d3124d5a0deaaeceabf8cb12 (patch)
treee17ae47c456d829f3e42cf5af89a25e7d29d3ee6 /src/glsl
parent30a086552827b82738421ff2d562e3c8c1da2735 (diff)
glsl: Initialize data in ast_function_expression::hir.
Completely initialize data that is passed to ir_constant constructor. Fixes piglit glsl-orangebook-ch06-bump valgrind uninitialized variable error on softpipe and llvmpipe.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ast_function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 34b0f70d41e..c2e526cf896 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -1193,7 +1193,7 @@ ast_function_expression::hir(exec_list *instructions,
* causes the matrix to be filled with 0 and the diagonal to be
* filled with the value.
*/
- ir_constant_data data;
+ ir_constant_data data = { { 0 } };
ir_constant *const initializer =
(ir_constant *) actual_parameters.head;
if (constructor_type->is_matrix())