diff --git a/jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java b/jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java index 84cdc17fc..2710e6a29 100644 --- a/jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java +++ b/jme3-core/src/main/java/com/jme3/light/DefaultLightFilter.java @@ -42,7 +42,7 @@ import java.util.HashSet; public final class DefaultLightFilter implements LightFilter { private Camera camera; - private final HashSet processedLights = new HashSet(); + private final HashSet processedLights = new HashSet<>(); private final LightProbeBlendingStrategy probeBlendStrat; public DefaultLightFilter() { @@ -59,6 +59,7 @@ public final class DefaultLightFilter implements LightFilter { for (Light light : processedLights) { light.frustumCheckNeeded = true; } + processedLights.clear(); } @Override