Fix level mesh crash
This commit is contained in:
parent
f5ab26a45b
commit
314ec1030c
1 changed files with 4 additions and 3 deletions
|
|
@ -618,6 +618,10 @@ void DoomLevelMesh::CreateFlatSurface(HWFlatDispatcher& disp, MeshBuilder& state
|
|||
{
|
||||
for (HWFlat& flatpart : list)
|
||||
{
|
||||
state.mSortedLists.clear();
|
||||
state.mVertices.Clear();
|
||||
state.mIndexes.Clear();
|
||||
|
||||
if (isSky)
|
||||
{
|
||||
state.SetEffect(EFF_PORTAL);
|
||||
|
|
@ -661,9 +665,6 @@ void DoomLevelMesh::CreateFlatSurface(HWFlatDispatcher& disp, MeshBuilder& state
|
|||
foundDraw = true;
|
||||
break;
|
||||
}
|
||||
state.mSortedLists.clear();
|
||||
state.mVertices.Clear();
|
||||
state.mIndexes.Clear();
|
||||
|
||||
if (!foundDraw)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue