forked from 0ad/0ad
Don't bother creating shadow textures if shadows are disabled
This was SVN commit r9061.
This commit is contained in:
parent
f0f87796f0
commit
612539f109
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user