GPU: Clamp coordinates to 11 bits after applying drawing offset

Fixes flickering in some scenes (e.g. Galbadia Missile Base).
This commit is contained in:
Connor McLaughlin
2020-04-04 00:10:45 +10:00
parent 48fba47ee6
commit 5302f83818
3 changed files with 19 additions and 14 deletions

View File

@ -61,8 +61,8 @@ protected:
ALWAYS_INLINE void Set(s32 x_, s32 y_, u32 color_, u32 texpage_, u16 u_, u16 v_)
{
x = x_;
y = y_;
x = VertexPositionToVRAMCoordinate(x_);
y = VertexPositionToVRAMCoordinate(y_);
color = color_;
texpage = texpage_;
u = u_;