mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- be a bit more careful with using unvalidated portals for checking render hacks.
This commit is contained in:
parent
1c7b512cc0
commit
f299248c8a
2 changed files with 3 additions and 3 deletions
|
@ -674,7 +674,7 @@ void FDrawInfo::DrawUnhandledMissingTextures()
|
||||||
if (seg->PartnerSeg && (seg->PartnerSeg->Subsector->flags & SSECF_DEGENERATE)) continue;
|
if (seg->PartnerSeg && (seg->PartnerSeg->Subsector->flags & SSECF_DEGENERATE)) continue;
|
||||||
if (seg->backsector->transdoor) continue;
|
if (seg->backsector->transdoor) continue;
|
||||||
if (seg->backsector->GetTexture(sector_t::ceiling) == skyflatnum) 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);
|
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->frontsector->GetPlaneTexZF(sector_t::floor) > ViewPos.Z) continue; // out of sight
|
||||||
if (seg->backsector->transdoor) continue;
|
if (seg->backsector->transdoor) continue;
|
||||||
if (seg->backsector->GetTexture(sector_t::floor) == skyflatnum) 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);
|
if (!glset.notexturefill) FloodLowerGap(seg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,7 +154,7 @@ void GLWall::SkyPlane(sector_t *sector, int plane, bool allowreflect)
|
||||||
case PORTS_PORTAL:
|
case PORTS_PORTAL:
|
||||||
case PORTS_LINKEDPORTAL:
|
case PORTS_LINKEDPORTAL:
|
||||||
{
|
{
|
||||||
FPortal *glport = sector->portals[plane];
|
FPortal *glport = sector->GetGLPortal(plane);
|
||||||
if (glport != NULL)
|
if (glport != NULL)
|
||||||
{
|
{
|
||||||
if (sector->PortalBlocksView(plane)) return;
|
if (sector->PortalBlocksView(plane)) return;
|
||||||
|
|
Loading…
Reference in a new issue