---
 src/glsl/ast_function.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 00e0c05..0860238 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -690,6 +690,7 @@ process_array_constructor(exec_list *instructions,
                          "expected: %s, found %s",
                          constructor_type->element_type()->name,
                          result->type->name);
+         return ir_rvalue::error_value(ctx);
       }
 
       /* Attempt to convert the parameter to a constant valued expression.
-- 
1.8.1.5

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to