- fixed setup of PolyBSPs when the software renderer is active.

Some needed initialization was still in the hardware renderer and not the data creator.
This commit is contained in:
Christoph Oelckers 2022-04-15 23:59:43 +02:00
parent d24f41a595
commit 1ba4dfbfa8
2 changed files with 6 additions and 5 deletions

View File

@ -1497,6 +1497,12 @@ void subsector_t::BuildPolyBSP()
BSP->Subsectors[i].sector = sector;
BSP->Subsectors[i].section = section;
}
for (unsigned i = 0; i < BSP->Segs.Size(); i++)
{
BSP->Segs[i].Subsector = this;
BSP->Segs[i].PartnerSeg = nullptr;
}
}
//===========================================================================

View File

@ -429,11 +429,6 @@ void HWDrawInfo::AddPolyobjs(subsector_t *sub)
if (sub->BSP == nullptr || sub->BSP->bDirty)
{
sub->BuildPolyBSP();
for (unsigned i = 0; i < sub->BSP->Segs.Size(); i++)
{
sub->BSP->Segs[i].Subsector = sub;
sub->BSP->Segs[i].PartnerSeg = nullptr;
}
}
if (sub->BSP->Nodes.Size() == 0)
{