[dxso] Handle multiplication by zero in TexM*Tex instructions

This commit is contained in:
Philip Rebohle 2021-09-14 15:36:58 +02:00 committed by Joshie
parent a9515d3530
commit 337360cdc6
1 changed files with 1 additions and 1 deletions

View File

@ -2716,7 +2716,7 @@ void DxsoCompiler::emitControlFlowGenericLoop(
reg.id.num -= (count - 1) - i;
auto m = emitRegisterLoadTexcoord(reg, vec3Mask);
indices[i] = m_module.opDot(getScalarTypeId(DxsoScalarType::Float32), m.id, n.id);
indices[i] = emitDot(m, n).id;
}
if (opcode == DxsoOpcode::TexM3x3Spec || opcode == DxsoOpcode::TexM3x3VSpec) {