From: Aras Pranckevicius Date: Thu, 29 Jul 2010 12:35:22 +0000 (+0300) Subject: glsl2: Fix stack smash when ternary selection is used. X-Git-Tag: 062012170305~10660^2~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c325af4d6b907e0a47ab7f868a2a78f054f153f;p=profile%2Fivi%2Fmesa.git glsl2: Fix stack smash when ternary selection is used. --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 9591d36..3522f55 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -658,7 +658,7 @@ ast_expression::hir(exec_list *instructions, -1, /* ast_sequence doesn't convert to ir_expression. */ }; ir_rvalue *result = NULL; - ir_rvalue *op[2]; + ir_rvalue *op[3]; const struct glsl_type *type = glsl_type::error_type; bool error_emitted = false; YYLTYPE loc;