mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-04-21 10:20:46 +00:00
Skip portal and sky surfaces
This commit is contained in:
parent
9f8d1effcd
commit
7c5e2c71b0
2 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue