summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-02 12:06:34 -0700
committerEric Anholt <[email protected]>2010-08-02 12:06:34 -0700
commite75dbf66d011d76b6944dc4ee55e339ee285510c (patch)
tree90cce4e74ecef2be3e90f57882e0df9c634b0cc3
parent47f3f223119739efd337ce1757c2e00d61be34cb (diff)
glsl2: Fix validation for ir_unop_not.
We use vector ir_unop_not to implement builtin not(), and that seems fine.
-rw-r--r--src/glsl/ir_validate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 85417a1dbc8..1dfac828269 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -171,8 +171,8 @@ ir_validate::visit_leave(ir_expression *ir)
assert(ir->operands[0]->type == ir->type);
break;
case ir_unop_logic_not:
- assert(ir->type == glsl_type::bool_type);
- assert(ir->operands[0]->type == glsl_type::bool_type);
+ assert(ir->type->base_type == GLSL_TYPE_BOOL);
+ assert(ir->operands[0]->type->base_type == GLSL_TYPE_BOOL);
break;
case ir_unop_neg: