summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 34b0f70d41..c2e526cf89 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())