1
1
forked from 0ad/0ad

Don't bother creating shadow textures if shadows are disabled

This was SVN commit r9061.
This commit is contained in:
Ykkrosh 2011-03-14 02:49:53 +00:00
parent f0f87796f0
commit 612539f109

View File

@ -1386,7 +1386,8 @@ void CRenderer::SetSceneCamera(const CCamera& viewCamera, const CCamera& cullCam
m_ViewCamera = viewCamera;
m_CullCamera = cullCamera;
m->shadow->SetupFrame(m_CullCamera, m_LightEnv->GetSunDir());
if (m_Caps.m_Shadows && m_Options.m_Shadows)
m->shadow->SetupFrame(m_CullCamera, m_LightEnv->GetSunDir());
}