fix tex coord transform mode 3, which had been entirely broken since rev 1411; this will fix some cases of 3d ortho sprites

This commit is contained in:
zeromus 2009-05-06 20:50:26 +00:00
parent 34ea5aaa5f
commit 23c6438dc0
1 changed files with 2 additions and 2 deletions

View File

@ -646,10 +646,10 @@ static void SetVertex()
{ {
last_s =((coord[0]*mtxCurrent[3][0] + last_s =((coord[0]*mtxCurrent[3][0] +
coord[1]*mtxCurrent[3][4] + coord[1]*mtxCurrent[3][4] +
coord[2]*mtxCurrent[3][8]) + _s); coord[2]*mtxCurrent[3][8]) + _s * 16.0f) / 16.0f;
last_t =((coord[0]*mtxCurrent[3][1] + last_t =((coord[0]*mtxCurrent[3][1] +
coord[1]*mtxCurrent[3][5] + coord[1]*mtxCurrent[3][5] +
coord[2]*mtxCurrent[3][9]) + _t); coord[2]*mtxCurrent[3][9]) + _t * 16.0f) / 16.0f;
} }
//refuse to do anything if we have too many verts or polys //refuse to do anything if we have too many verts or polys