Remove else in software renderer
This commit is contained in:
parent
e0a1ab9027
commit
89b1d613cc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue