Merge pull request #1006 from BeamNG/fix_lighting_with_zero_lights

Fix lighting errors when all lights are disabled.
This commit is contained in:
Daniel Buckmaster 2015-03-01 21:06:34 +11:00
commit baf594aee7

View file

@ -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