瀏覽代碼

Merge pull request #1006 from BeamNG/fix_lighting_with_zero_lights

Fix lighting errors when all lights are disabled.
Daniel Buckmaster 10 年之前
父節點
當前提交
baf594aee7
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Engine/source/lighting/advanced/advancedLightBinManager.cpp

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

@@ -244,9 +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 );
 
    // Tell the superclass we're about to render