Minor fixes.

git-svn-id: https://svn.eduke32.com/eduke32@447 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
Plagman 2007-01-06 05:11:14 +00:00
parent 5a7cceb19d
commit 70bf6c9102
2 changed files with 8 additions and 1 deletions

View file

@ -6088,6 +6088,8 @@ if ((!r_depthpeeling) || (rendmode < 3))
if ((!r_depthpeeling) || (rendmode < 3)) if ((!r_depthpeeling) || (rendmode < 3))
#endif #endif
{ {
curpolygonoffset = 0;
pos.x = globalposx; pos.x = globalposx;
pos.y = globalposy; 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)) if ((sameside(&maskeq, &spr, &pos) == 0) && sameside(&p1eq, &middle, &spr) && sameside(&p2eq, &middle, &spr))
{ {
bglDisable(GL_POLYGON_OFFSET_FILL);
drawsprite(i); drawsprite(i);
tspriteptr[i] = NULL; tspriteptr[i] = NULL;
} }
@ -6130,8 +6133,12 @@ if ((!r_depthpeeling) || (rendmode < 3))
{ {
spritesortcnt--; spritesortcnt--;
if (tspriteptr[spritesortcnt] != NULL) if (tspriteptr[spritesortcnt] != NULL)
{
bglDisable(GL_POLYGON_OFFSET_FILL);
drawsprite(spritesortcnt); drawsprite(spritesortcnt);
} }
}
bglDisable(GL_POLYGON_OFFSET_FILL);
} /* depthpeeling */ } /* depthpeeling */
#ifdef USE_OPENGL #ifdef USE_OPENGL

View file

@ -4021,7 +4021,7 @@ if (tspr->cstat&2) { if (!(tspr->cstat&512)) method = 2+4; else method = 3+4; }
} }
break; break;
} }
if (((tspr->cstat&2) || (gltexmayhavealpha(tspr->picnum,tspr->pal))) && (peelcompiling)) if (((tspr->cstat&2) || (gltexmayhavealpha(tspr->picnum,tspr->pal))))
{ {
curpolygonoffset += 0.01f; curpolygonoffset += 0.01f;
bglEnable(GL_POLYGON_OFFSET_FILL); bglEnable(GL_POLYGON_OFFSET_FILL);