2
0
Эх сурвалжийг харах

Fix lighting errors when all lights are disabled.

LuisAntonRebollo 11 жил өмнө
parent
commit
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
    // 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 );