mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
Polymer: Fix one-sided y-flipped floor-aligned sprites, introduced in r3776.
Add a test case in test_tileoffsets.map. git-svn-id: https://svn.eduke32.com/eduke32@3869 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e955860950
commit
d25dcbff17
2 changed files with 10 additions and 2 deletions
|
@ -1484,8 +1484,12 @@ void polymer_drawsprite(int32_t snum)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tspr->cstat & 64) && ((tspr->cstat>>4) & 3))
|
if ((tspr->cstat & 64) && (tspr->cstat & SPR_ALIGN_MASK))
|
||||||
|
{
|
||||||
|
if ((tspr->cstat & SPR_ALIGN_MASK)==SPR_FLOOR && (tspr->cstat & SPR_YFLIP))
|
||||||
|
SWITCH_CULL_DIRECTION;
|
||||||
bglEnable(GL_CULL_FACE);
|
bglEnable(GL_CULL_FACE);
|
||||||
|
}
|
||||||
|
|
||||||
if ((!depth || mirrors[depth-1].plane) && !pr_ati_nodepthoffset)
|
if ((!depth || mirrors[depth-1].plane) && !pr_ati_nodepthoffset)
|
||||||
bglEnable(GL_POLYGON_OFFSET_FILL);
|
bglEnable(GL_POLYGON_OFFSET_FILL);
|
||||||
|
@ -1495,8 +1499,12 @@ void polymer_drawsprite(int32_t snum)
|
||||||
if ((!depth || mirrors[depth-1].plane) && !pr_ati_nodepthoffset)
|
if ((!depth || mirrors[depth-1].plane) && !pr_ati_nodepthoffset)
|
||||||
bglDisable(GL_POLYGON_OFFSET_FILL);
|
bglDisable(GL_POLYGON_OFFSET_FILL);
|
||||||
|
|
||||||
if ((tspr->cstat & 64) && ((tspr->cstat>>4) & 3))
|
if ((tspr->cstat & 64) && (tspr->cstat & SPR_ALIGN_MASK))
|
||||||
|
{
|
||||||
|
if ((tspr->cstat & SPR_ALIGN_MASK)==SPR_FLOOR && (tspr->cstat & SPR_YFLIP))
|
||||||
|
SWITCH_CULL_DIRECTION;
|
||||||
bglDisable(GL_CULL_FACE);
|
bglDisable(GL_CULL_FACE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void polymer_setanimatesprites(animatespritesptr animatesprites, int32_t x, int32_t y, int32_t a, int32_t smoothratio)
|
void polymer_setanimatesprites(animatespritesptr animatesprites, int32_t x, int32_t y, int32_t a, int32_t smoothratio)
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue