glsl2: Fix stack smash when ternary selection is used.
This commit is contained in:

committed by
Eric Anholt

parent
3fa1b85196
commit
1c325af4d6
@@ -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;
|
||||
|
Reference in New Issue
Block a user