Move DrewAVoxel to VisibleSpriteList

This commit is contained in:
Magnus Norddahl 2017-01-26 08:39:44 +01:00
commit 933f2d116a
5 changed files with 12 additions and 10 deletions

View file

@ -61,7 +61,6 @@ namespace swrenderer
void RenderTranslucentPass::Clear()
{
VisibleSpriteList::Instance()->Clear();
DrewAVoxel = false;
}
void RenderTranslucentPass::CollectPortals()
@ -161,7 +160,7 @@ namespace swrenderer
void RenderTranslucentPass::Render()
{
CollectPortals();
VisibleSpriteList::Instance()->Sort(DrewAVoxel);
VisibleSpriteList::Instance()->Sort();
Clip3DFloors *clip3d = Clip3DFloors::Instance();
if (clip3d->height_top == nullptr)