Skip portal and sky surfaces

This commit is contained in:
RaveYard 2023-09-14 12:29:14 +02:00 committed by Magnus Norddahl
commit 06d137e4da
2 changed files with 2 additions and 2 deletions

View file

@ -741,7 +741,7 @@ public:
inline void PushVisibleSurface(LevelMeshSurface* surface)
{
if (surface->needsUpdate) // TODO atomic?
if (surface->needsUpdate && !surface->portalIndex && !surface->bSky) // TODO atomic?
{
auto index = mActiveLightmapSurfaceBufferIndex.fetch_add(1);
if (index < mActiveLightmapSurfacesBuffer.Size())