[Mesa-dev] [PATCH 1/4] glsl: Add missing braces in initializer
Francesco Ansanelli
francians at gmail.com
Wed Jul 20 07:49:32 UTC 2016
---
src/compiler/glsl/ast_to_hir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp
index 8ddc084..b82e693 100644
--- a/src/compiler/glsl/ast_to_hir.cpp
+++ b/src/compiler/glsl/ast_to_hir.cpp
@@ -4700,7 +4700,7 @@ ast_declarator_list::hir(exec_list *instructions,
if ((var->data.mode == ir_var_auto || var->data.mode == ir_var_temporary)
&& (var->type->is_numeric() || var->type->is_boolean())
&& state->zero_init) {
- const ir_constant_data data = {0};
+ const ir_constant_data data = {{0}};
var->data.has_initializer = true;
var->constant_initializer = new(var) ir_constant(var->type, &data);
}
--
1.7.9.5
More information about the mesa-dev
mailing list