Skip to content

Commit

Permalink
Fix broken lightstyle updates w/ per-pixel light enabled
Browse files Browse the repository at this point in the history
If PPL was enabled, and dlights changed for a surface, lightstyles
wouldn't be updated.
  • Loading branch information
res2k committed Feb 1, 2025
1 parent d5c2fe3 commit abc48c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/refresh/surf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit abc48c9

Please sign in to comment.