Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 268 vs 270 for /trunk/Source Code/Managers/LightManager.cpp

Diff revisions: vs.
  @@ -186,8 +186,10 @@
186 186 if (!_shadowMapsEnabled || !GFX_DEVICE.isCurrentRenderStage(DISPLAY_STAGE))
187 187 return;
188 188
189 - FOR_EACH(LightMap::value_type& it, _lights)
189 + FOR_EACH(LightMap::value_type& it, _lights){
190 + assert(it.second->getShadowMapInfo() && it.second->getShadowMapInfo()->getShadowMap());
190 191 it.second->getShadowMapInfo()->getShadowMap()->togglePreviewShadowMaps(_previewShadowMaps);
192 + }
191 193 }
192 194
193 195 void LightManager::previewShadowMaps(Light* light) {