diff options
Diffstat (limited to 'src/compiler/glsl/opt_algebraic.cpp')
-rw-r--r-- | src/compiler/glsl/opt_algebraic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/glsl/opt_algebraic.cpp b/src/compiler/glsl/opt_algebraic.cpp index b44ab595ecb..382b4617d1b 100644 --- a/src/compiler/glsl/opt_algebraic.cpp +++ b/src/compiler/glsl/opt_algebraic.cpp @@ -328,8 +328,8 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir) } } - assert(ir->get_num_operands() <= 4); - for (unsigned i = 0; i < ir->get_num_operands(); i++) { + assert(ir->num_operands <= 4); + for (unsigned i = 0; i < ir->num_operands; i++) { if (ir->operands[i]->type->is_matrix()) return ir; |