瀏覽代碼

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
    // Get the sunlight. If there's no sun, and no lights in the bins, no draw
    LightInfo *sunLight = mLightManager->getSpecialLight( LightManager::slSunLightType, false );
    LightInfo *sunLight = mLightManager->getSpecialLight( LightManager::slSunLightType, false );
-   if( !sunLight && mLightBin.empty() )
-      return;
 
 
    GFXDEBUGEVENT_SCOPE( AdvancedLightBinManager_Render, ColorI::RED );
    GFXDEBUGEVENT_SCOPE( AdvancedLightBinManager_Render, ColorI::RED );