Jelajahi Sumber

Fix lighting errors when all lights are disabled.

LuisAntonRebollo 11 tahun lalu
induk
melakukan
f166e5286d

+ 0 - 2
Engine/source/lighting/advanced/advancedLightBinManager.cpp

@@ -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 );