Remove else in software renderer

This commit is contained in:
Preston Smith 2016-07-23 21:30:39 -05:00
parent e0a1ab9027
commit 89b1d613cc
1 changed files with 2 additions and 12 deletions

View File

@ -183,18 +183,8 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo
// TODO write comment
if (dst->z == 0.0f)
{
if (mat[8] != 0.0f || (xfmem.dualTexTrans.enabled && postMat[8] != 0.0f) || mat[9] != 0.0f ||
(xfmem.dualTexTrans.enabled && postMat[9] != 0.0f))
{
// TODO test this case more
dst->x = 0.0f;
dst->y = 0.0f;
}
else
{
dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f);
dst->y = MathUtil::Clamp(dst->y / 2.0f, -1.0f, 1.0f);
}
dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f);
dst->y = MathUtil::Clamp(dst->y / 2.0f, -1.0f, 1.0f);
}
}