mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Minor fixes.
git-svn-id: https://svn.eduke32.com/eduke32@447 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5a7cceb19d
commit
70bf6c9102
2 changed files with 8 additions and 1 deletions
|
@ -6088,6 +6088,8 @@ if ((!r_depthpeeling) || (rendmode < 3))
|
|||
if ((!r_depthpeeling) || (rendmode < 3))
|
||||
#endif
|
||||
{
|
||||
curpolygonoffset = 0;
|
||||
|
||||
pos.x = globalposx;
|
||||
pos.y = globalposy;
|
||||
|
||||
|
@ -6118,6 +6120,7 @@ if ((!r_depthpeeling) || (rendmode < 3))
|
|||
|
||||
if ((sameside(&maskeq, &spr, &pos) == 0) && sameside(&p1eq, &middle, &spr) && sameside(&p2eq, &middle, &spr))
|
||||
{
|
||||
bglDisable(GL_POLYGON_OFFSET_FILL);
|
||||
drawsprite(i);
|
||||
tspriteptr[i] = NULL;
|
||||
}
|
||||
|
@ -6130,8 +6133,12 @@ if ((!r_depthpeeling) || (rendmode < 3))
|
|||
{
|
||||
spritesortcnt--;
|
||||
if (tspriteptr[spritesortcnt] != NULL)
|
||||
{
|
||||
bglDisable(GL_POLYGON_OFFSET_FILL);
|
||||
drawsprite(spritesortcnt);
|
||||
}
|
||||
}
|
||||
bglDisable(GL_POLYGON_OFFSET_FILL);
|
||||
|
||||
} /* depthpeeling */
|
||||
#ifdef USE_OPENGL
|
||||
|
|
|
@ -4021,7 +4021,7 @@ if (tspr->cstat&2) { if (!(tspr->cstat&512)) method = 2+4; else method = 3+4; }
|
|||
}
|
||||
break;
|
||||
}
|
||||
if (((tspr->cstat&2) || (gltexmayhavealpha(tspr->picnum,tspr->pal))) && (peelcompiling))
|
||||
if (((tspr->cstat&2) || (gltexmayhavealpha(tspr->picnum,tspr->pal))))
|
||||
{
|
||||
curpolygonoffset += 0.01f;
|
||||
bglEnable(GL_POLYGON_OFFSET_FILL);
|
||||
|
|
Loading…
Reference in a new issue