diff --git a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java index f6f951ab3..8677f7322 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java +++ b/jme3-core/src/main/java/com/jme3/renderer/RenderManager.java @@ -47,6 +47,7 @@ import com.jme3.shader.UniformBinding; import com.jme3.shader.UniformBindingManager; import com.jme3.system.NullRenderer; import com.jme3.system.Timer; +import com.jme3.util.SafeArrayList; import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -962,13 +963,13 @@ public class RenderManager { if (!vp.isEnabled()) { return; } - List processors = vp.getProcessors(); + SafeArrayList processors = vp.getProcessors(); if (processors.isEmpty()) { processors = null; } if (processors != null) { - for (SceneProcessor proc : processors) { + for (SceneProcessor proc : processors.getArray()) { if (!proc.isInitialized()) { proc.initialize(this, vp); } @@ -993,7 +994,7 @@ public class RenderManager { } if (processors != null) { - for (SceneProcessor proc : processors) { + for (SceneProcessor proc : processors.getArray()) { proc.postQueue(vp.getQueue()); } } @@ -1001,7 +1002,7 @@ public class RenderManager { flushQueue(vp); if (processors != null) { - for (SceneProcessor proc : processors) { + for (SceneProcessor proc : processors.getArray()) { proc.postFrame(vp.getOutputFrameBuffer()); } }