Fixed: Software rendered models checked the wrong CVAR for enabled dynamic lights.

This commit is contained in:
Christoph Oelckers 2018-06-26 08:23:07 +02:00
parent f8272287d2
commit e402babfc0
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ PolyModelRenderer::PolyModelRenderer(PolyRenderThread *thread, const Mat4f &worl
void PolyModelRenderer::AddLights(AActor *actor) void PolyModelRenderer::AddLights(AActor *actor)
{ {
if (gl_lights && actor) if (r_dynlights && actor)
{ {
auto &addedLights = Thread->AddedLightsArray; auto &addedLights = Thread->AddedLightsArray;

View file

@ -98,7 +98,7 @@ namespace swrenderer
void SWModelRenderer::AddLights(AActor *actor) void SWModelRenderer::AddLights(AActor *actor)
{ {
if (gl_lights && actor) if (r_dynlights && actor)
{ {
auto &addedLights = Thread->AddedLightsArray; auto &addedLights = Thread->AddedLightsArray;