Fix lighting errors when all lights are disabled.

This commit is contained in:
LuisAntonRebollo 2014-12-03 23:46:12 +01:00
parent 7097ce6466
commit f166e5286d

View file

@ -244,8 +244,6 @@ void AdvancedLightBinManager::render( SceneRenderState *state )
// Get the sunlight. If there's no sun, and no lights in the bins, no draw
LightInfo *sunLight = mLightManager->getSpecialLight( LightManager::slSunLightType, false );
if( !sunLight && mLightBin.empty() )
return;
GFXDEBUGEVENT_SCOPE( AdvancedLightBinManager_Render, ColorI::RED );