diff options
author | Ian Romanick <[email protected]> | 2010-11-10 16:33:10 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-11-19 15:00:25 -0800 |
commit | fc92e87b9757eda01caf0bb3e2c31b1dbbd73aa0 (patch) | |
tree | 0166f7ad2f9b19794f8a65b0b050fe4dc4cd083a /src/mesa/program | |
parent | f2616e56de8a48360cae8f269727b58490555f4d (diff) |
glsl: Eliminate assumptions about size of ir_expression::operands
This may grow in the near future.
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index ef9f692f946..1b5337e92ee 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -961,7 +961,7 @@ void ir_to_mesa_visitor::visit(ir_expression *ir) { unsigned int operand; - struct ir_to_mesa_src_reg op[2]; + struct ir_to_mesa_src_reg op[Elements(ir->operands)]; struct ir_to_mesa_src_reg result_src; struct ir_to_mesa_dst_reg result_dst; |