Skip to content

Commit 3920d5f

Browse files
committed
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.
1 parent d5c2fe3 commit 3920d5f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/refresh/surf.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,8 @@ void GL_PushLights(mface_t *surf)
274274
return;
275275

276276
// dynamic this frame or dynamic previously
277-
if (surf->dlightframe) {
278-
if (!gl_backend->use_per_pixel_lighting())
279-
update_dynamic_lightmap(surf);
277+
if (surf->dlightframe && !gl_backend->use_per_pixel_lighting()) {
278+
update_dynamic_lightmap(surf);
280279
return;
281280
}
282281

0 commit comments

Comments
 (0)