summaryrefslogtreecommitdiff
path: root/src/glsl/ir_validate.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-09-07 23:22:10 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-09-08 12:09:42 -0700
commit368dc76f04e19f5070d1f41795ea8cde2964639f (patch)
tree5157a62b91e2ef9b47eb9c48f2a62eb02cb12392 /src/glsl/ir_validate.cpp
parent4b2ffa0a42ca80662f4db54c561784766d7c485a (diff)
ir_validate: Ensure ir_binop_dot is only used on vector types.
Diffstat (limited to 'src/glsl/ir_validate.cpp')
-rw-r--r--src/glsl/ir_validate.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp
index 8e82590364..445169f520 100644
--- a/src/glsl/ir_validate.cpp
+++ b/src/glsl/ir_validate.cpp
@@ -338,6 +338,7 @@ ir_validate::visit_leave(ir_expression *ir)
case ir_binop_dot:
assert(ir->type == glsl_type::float_type);
assert(ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT);
+ assert(ir->operands[0]->type->is_vector());
assert(ir->operands[0]->type == ir->operands[1]->type);
break;