Skip portal and sky surfaces

This commit is contained in:
RaveYard 2023-09-14 12:29:14 +02:00 committed by Christoph Oelckers
parent 9f8d1effcd
commit 7c5e2c71b0
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())

View file

@ -869,7 +869,7 @@ void UpdateLightmaps(DFrameBuffer* screen, FRenderState& RenderState)
{
for (auto& e : level.levelMesh->Surfaces)
{
if (e.needsUpdate && !e.bSky)
if (e.needsUpdate && !e.bSky && !e.portalIndex)
{
list.Push(&e);