mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- 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:
parent
d24f41a595
commit
1ba4dfbfa8
2 changed files with 6 additions and 5 deletions
|
@ -1497,6 +1497,12 @@ void subsector_t::BuildPolyBSP()
|
||||||
BSP->Subsectors[i].sector = sector;
|
BSP->Subsectors[i].sector = sector;
|
||||||
BSP->Subsectors[i].section = section;
|
BSP->Subsectors[i].section = section;
|
||||||
}
|
}
|
||||||
|
for (unsigned i = 0; i < BSP->Segs.Size(); i++)
|
||||||
|
{
|
||||||
|
BSP->Segs[i].Subsector = this;
|
||||||
|
BSP->Segs[i].PartnerSeg = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
|
@ -429,11 +429,6 @@ void HWDrawInfo::AddPolyobjs(subsector_t *sub)
|
||||||
if (sub->BSP == nullptr || sub->BSP->bDirty)
|
if (sub->BSP == nullptr || sub->BSP->bDirty)
|
||||||
{
|
{
|
||||||
sub->BuildPolyBSP();
|
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)
|
if (sub->BSP->Nodes.Size() == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue