- do y-flipping of wall textures correctly.

1.f - h is not correct for NPOT texures due to hpw they tile.
This commit is contained in:
Christoph Oelckers 2021-04-02 22:50:53 +02:00
parent 7446d0441b
commit 54eee347a6

View file

@ -743,7 +743,7 @@ void HWWall::DoTexture(HWDrawInfo* di, walltype* wal, walltype* refwall, float r
{
float h = hl + (hr - hl) * frac;
h = (-(float)(refheight + (h * 256)) / ((th * 2048.0f) / (float)(wal->yrepeat))) + ypanning;
if (wal->cstat & CSTAT_WALL_YFLIP) h = 1.f - h;
if (wal->cstat & CSTAT_WALL_YFLIP) h = -h;
return h;
};