Fix mesh builder not getting cleared correctly
This commit is contained in:
parent
d2958d8366
commit
e65b3058cf
1 changed files with 4 additions and 3 deletions
|
|
@ -686,6 +686,10 @@ void DoomLevelMesh::CreateWallSurface(side_t* side, HWWallDispatcher& disp, Mesh
|
|||
{
|
||||
for (HWWall& wallpart : list)
|
||||
{
|
||||
state.mSortedLists.clear();
|
||||
state.mVertices.Clear();
|
||||
state.mIndexes.Clear();
|
||||
|
||||
if (drawType == LevelMeshDrawType::Portal)
|
||||
{
|
||||
state.SetEffect(EFF_PORTAL);
|
||||
|
|
@ -769,9 +773,6 @@ void DoomLevelMesh::CreateWallSurface(side_t* side, HWWallDispatcher& disp, Mesh
|
|||
*(uinfo.Materials++) = applyState.material;
|
||||
uniformsIndex++;
|
||||
}
|
||||
state.mSortedLists.clear();
|
||||
state.mVertices.Clear();
|
||||
state.mIndexes.Clear();
|
||||
|
||||
FVector2 v1 = FVector2(side->V1()->fPos());
|
||||
FVector2 v2 = FVector2(side->V2()->fPos());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue