Early out of ILC interpolation if there are no samples

#PR 793

[CL 2538224 by Daniel Wright in Main branch]
This commit is contained in:
Daniel Wright
2015-05-05 17:32:06 -04:00
committed by Daniel.Wright@epicgames.com
parent f876055b84
commit ea9b683fa2

View File

@@ -351,7 +351,7 @@ FIndirectLightingCacheAllocation* FIndirectLightingCache::FindPrimitiveAllocatio
void FIndirectLightingCache::UpdateCache(FScene* Scene, FSceneRenderer& Renderer, bool bAllowUnbuiltPreview)
{
if (IsIndirectLightingCacheAllowed(GetFeatureLevel()))
if (IsIndirectLightingCacheAllowed(GetFeatureLevel()) && Scene->PrecomputedLightVolumes.Num() > 0)
{
bool bAnyViewAllowsIndirectLightingCache = false;