Преглед изворни кода

Fix lighting errors when all lights are disabled.

LuisAntonRebollo пре 11 година
родитељ
комит
f166e5286d
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      Engine/source/lighting/advanced/advancedLightBinManager.cpp

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