mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
- fixed texture y-flipping on bottom tiers of walls.
The flip flag was taken from the wrong side of the wall.
This commit is contained in:
parent
29b0106a96
commit
b644000b02
1 changed files with 1 additions and 1 deletions
|
@ -705,7 +705,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 = -h;
|
||||
if (refwall->cstat & CSTAT_WALL_YFLIP) h = -h;
|
||||
return h;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue