- 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
commit 1ba4dfbfa8
2 changed files with 6 additions and 5 deletions

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)
{