- Slightly improve softpoly opaque pass performance

This commit is contained in:
Magnus Norddahl 2017-09-12 02:40:09 +02:00
commit 70220fb4cc
3 changed files with 61 additions and 51 deletions

View file

@ -112,7 +112,7 @@ bool RenderPolyWall::RenderLine(PolyRenderThread *thread, const TriMatrix &world
}
else
{
sector_t *backsector = (line->backsector != line->frontsector) ? line->backsector : line->frontsector;
sector_t *backsector = line->backsector;
double backceilz1 = backsector->ceilingplane.ZatPoint(line->v1);
double backfloorz1 = backsector->floorplane.ZatPoint(line->v1);