Skip to content

Commit

Permalink
Missing "track->hasShadows" check
Browse files Browse the repository at this point in the history
  • Loading branch information
vlj committed Apr 26, 2014
1 parent 924e09b commit a2e202a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a2e202a

Please sign in to comment.