summaryrefslogtreecommitdiff
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorAras Pranckevicius <aras@unity3d.com>2010-07-29 15:35:22 +0300
committerEric Anholt <eric@anholt.net>2010-07-31 12:00:01 -0700
commit1c325af4d6b907e0a47ab7f868a2a78f054f153f (patch)
treeaff3244068dc7e3a6444aaa6dcc7e26c5e12196f /src/glsl/ast_to_hir.cpp
parent3fa1b85196b7d57c6c139e62000ac519b1b2320c (diff)
glsl2: Fix stack smash when ternary selection is used.
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 9591d36de8..3522f55aac 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;