GPU: Fix texcoord off-by-one error in rectangles

This commit is contained in:
Connor McLaughlin
2019-10-29 23:42:08 +10:00
parent 9f5bd6e5f9
commit 5626d4f282
5 changed files with 35 additions and 25 deletions

View File

@ -20,8 +20,10 @@ protected:
s32 y;
u32 color;
u32 texpage;
u16 texcoord;
u16 padding;
u32 texcoord;
// 16-bit texcoords are needed for 256 extent rectangles
static u32 PackTexcoord(u16 x, u16 y) { return ZeroExtend32(x) | (ZeroExtend32(y) << 16); }
};
struct HWRenderBatch