diff --git a/src/polyrenderer/scene/poly_model.cpp b/src/polyrenderer/scene/poly_model.cpp index 4251589d9..a49212989 100644 --- a/src/polyrenderer/scene/poly_model.cpp +++ b/src/polyrenderer/scene/poly_model.cpp @@ -56,7 +56,7 @@ PolyModelRenderer::PolyModelRenderer(PolyRenderThread *thread, const Mat4f &worl void PolyModelRenderer::AddLights(AActor *actor) { - if (gl_lights && actor) + if (r_dynlights && actor) { auto &addedLights = Thread->AddedLightsArray; diff --git a/src/swrenderer/things/r_model.cpp b/src/swrenderer/things/r_model.cpp index 0991d1d45..70995c32c 100644 --- a/src/swrenderer/things/r_model.cpp +++ b/src/swrenderer/things/r_model.cpp @@ -98,7 +98,7 @@ namespace swrenderer void SWModelRenderer::AddLights(AActor *actor) { - if (gl_lights && actor) + if (r_dynlights && actor) { auto &addedLights = Thread->AddedLightsArray;