commit | 6fc983b9bb5555e2906d2680bc3cbd11c43b63f6 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Tue Jul 06 02:39:57 2010 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Tue Jul 06 16:03:33 2010 -0700 |
tree | 6f4a04bd8664483329604745e1e0e26f7e144aaf | |
parent | 6bc432e14e12c280bc53e57338bf86fbf8d26885 [diff] [blame] |
ir_constant_expression: Assert that both operands share a base type.
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 6d6ee09..610d947 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp
@@ -141,6 +141,9 @@ return; } + if (op[1] != NULL) + assert(op[0]->type->base_type == op[1]->type->base_type); + switch (ir->operation) { case ir_unop_logic_not: assert(op[0]->type->base_type == GLSL_TYPE_BOOL);