- be a bit more careful with using unvalidated portals for checking render hacks.

This commit is contained in:
Christoph Oelckers 2016-04-22 09:15:22 +02:00
parent 1c7b512cc0
commit f299248c8a
2 changed files with 3 additions and 3 deletions

View File

@ -674,7 +674,7 @@ void FDrawInfo::DrawUnhandledMissingTextures()
if (seg->PartnerSeg && (seg->PartnerSeg->Subsector->flags & SSECF_DEGENERATE)) continue;
if (seg->backsector->transdoor) continue;
if (seg->backsector->GetTexture(sector_t::ceiling) == skyflatnum) continue;
if (seg->backsector->portals[sector_t::ceiling] != NULL) continue;
if (seg->backsector->ValidatePortal(sector_t::ceiling) != NULL) continue;
if (!glset.notexturefill) FloodUpperGap(seg);
}
@ -693,7 +693,7 @@ void FDrawInfo::DrawUnhandledMissingTextures()
if (seg->frontsector->GetPlaneTexZF(sector_t::floor) > ViewPos.Z) continue; // out of sight
if (seg->backsector->transdoor) continue;
if (seg->backsector->GetTexture(sector_t::floor) == skyflatnum) continue;
if (seg->backsector->portals[sector_t::floor] != NULL) continue;
if (seg->backsector->ValidatePortal(sector_t::floor) != NULL) continue;
if (!glset.notexturefill) FloodLowerGap(seg);
}

View File

@ -154,7 +154,7 @@ void GLWall::SkyPlane(sector_t *sector, int plane, bool allowreflect)
case PORTS_PORTAL:
case PORTS_LINKEDPORTAL:
{
FPortal *glport = sector->portals[plane];
FPortal *glport = sector->GetGLPortal(plane);
if (glport != NULL)
{
if (sector->PortalBlocksView(plane)) return;