浏览代码

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