mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 01:10:51 +00:00
- ensure that all HWSprites are oriented with z1 > z2.
This is required by the sorting code to work as intended.
This commit is contained in:
parent
f9f1d591b3
commit
59f18f5fa7
1 changed files with 6 additions and 0 deletions
|
@ -437,6 +437,12 @@ void HWSprite::Process(HWDrawInfo* di, spritetype* spr, sectortype* sector, int
|
|||
|
||||
z1 = z + yoff;
|
||||
z2 = z + height + yoff;
|
||||
if (z1 < z2)
|
||||
{
|
||||
// Make sure that z1 is the higher one. Some utilities expect it to be oriented this way.
|
||||
std::swap(z1, z2);
|
||||
std::swap(vt, vb);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue