Fix condition.
This commit is contained in:
parent
21317f561f
commit
f31e5763d2
@ -940,7 +940,7 @@ void IrrDriver::renderLights(scene::ICameraSceneNode * const camnode, float dt)
|
||||
if (!m_lights[i]->isPointLight())
|
||||
{
|
||||
m_lights[i]->render();
|
||||
if (World::getWorld()->getTrack()->hasShadows())
|
||||
if (!World::getWorld()->getTrack()->hasShadows())
|
||||
continue;
|
||||
if (UserConfigParams::m_shadows)
|
||||
m_post_processing->renderShadowedSunlight(sun_ortho_matrix, m_rtts->getShadowDepthTex());
|
||||
|
Loading…
x
Reference in New Issue
Block a user