mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Fix lighting errors when all lights are disabled.
This commit is contained in:
parent
7097ce6466
commit
f166e5286d
1 changed files with 0 additions and 2 deletions
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue