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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c325af4d6b907e0a47ab7f868a2a78f054f153f;p=mesa.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 9591d36de8e..3522f55aacd 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;