mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
Fixed: Software rendered models checked the wrong CVAR for enabled dynamic lights.
This commit is contained in:
parent
f8272287d2
commit
e402babfc0
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue