diff options
author | Kenneth Graunke <[email protected]> | 2010-09-07 23:22:10 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-08 12:09:42 -0700 |
commit | 368dc76f04e19f5070d1f41795ea8cde2964639f (patch) | |
tree | 5157a62b91e2ef9b47eb9c48f2a62eb02cb12392 | |
parent | 4b2ffa0a42ca80662f4db54c561784766d7c485a (diff) |
ir_validate: Ensure ir_binop_dot is only used on vector types.
-rw-r--r-- | src/glsl/ir_validate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_validate.cpp b/src/glsl/ir_validate.cpp index 8e825903644..445169f5202 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; |