From 23c6438dc05a464dbea64eb2336c0ba1de31713e Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 6 May 2009 20:50:26 +0000 Subject: [PATCH] fix tex coord transform mode 3, which had been entirely broken since rev 1411; this will fix some cases of 3d ortho sprites --- desmume/src/gfx3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index 606a69eba..2a1796370 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -646,10 +646,10 @@ static void SetVertex() { last_s =((coord[0]*mtxCurrent[3][0] + 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] + 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