glsl2: Fix stack smash when ternary selection is used.

This commit is contained in:
Aras Pranckevicius
2010-07-29 15:35:22 +03:00
committed by Eric Anholt
parent 3fa1b85196
commit 1c325af4d6

View File

@@ -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;