Missing "track->hasShadows" check

This commit is contained in:
vlj
2014-04-26 02:22:33 +02:00
parent 924e09b3e9
commit a2e202a695

View File

@@ -901,7 +901,7 @@ void IrrDriver::renderLights(const core::aabbox3df& cambox,
if (!m_lights[i]->isPointLight())
{
m_lights[i]->render();
if (UserConfigParams::m_shadows)
if (UserConfigParams::m_shadows && World::getWorld()->getTrack()->hasShadows())
m_post_processing->renderShadowedSunlight(sun_ortho_matrix, m_rtts->getShadowDepthTex());
else
m_post_processing->renderSunlight();