From 3920d5fae363e8af956ae596b4467cb767221615 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Sun, 2 Feb 2025 00:17:16 +0100 Subject: [PATCH] Fix broken lightstyle updates w/ per-pixel light enabled If PPL was enabled, but there were no changed dlights, lightstyles wouldn't be updated either. --- src/refresh/surf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/refresh/surf.c b/src/refresh/surf.c index 421947c16..814ac994d 100644 --- a/src/refresh/surf.c +++ b/src/refresh/surf.c @@ -274,9 +274,8 @@ void GL_PushLights(mface_t *surf) return; // dynamic this frame or dynamic previously - if (surf->dlightframe) { - if (!gl_backend->use_per_pixel_lighting()) - update_dynamic_lightmap(surf); + if (surf->dlightframe && !gl_backend->use_per_pixel_lighting()) { + update_dynamic_lightmap(surf); return; }