瀏覽代碼

glsl: fix matrix type check in ir_algebraic

Fixes glsl-mat-mul-1.
tags/android-x86-2.2
Aras Pranckevicius 15 年之前
父節點
當前提交
4ce084c707
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/glsl/opt_algebraic.cpp

+ 2
- 2
src/glsl/opt_algebraic.cpp 查看文件

@@ -123,8 +123,8 @@ ir_algebraic_visitor::reassociate_constant(ir_expression *ir1, int const_index,

/* Don't want to even think about matrices. */
if (ir1->operands[0]->type->is_matrix() ||
ir1->operands[0]->type->is_matrix() ||
ir2->operands[1]->type->is_matrix() ||
ir1->operands[1]->type->is_matrix() ||
ir2->operands[0]->type->is_matrix() ||
ir2->operands[1]->type->is_matrix())
return false;


Loading…
取消
儲存