From dc4d95961728b859f30c28a68685ee791b64fe4c Mon Sep 17 00:00:00 2001 From: "sgold@sonic.net" <> Date: Mon, 21 Apr 2014 13:11:12 -0700 Subject: [PATCH] fix NPE in FilterPostProcessor: corresponds to SVN revision 10920 in trunk --- engine/src/core/com/jme3/post/FilterPostProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/post/FilterPostProcessor.java b/engine/src/core/com/jme3/post/FilterPostProcessor.java index 06521780e..2b2bec955 100644 --- a/engine/src/core/com/jme3/post/FilterPostProcessor.java +++ b/engine/src/core/com/jme3/post/FilterPostProcessor.java @@ -359,7 +359,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable { return; } } - if (lastFilterIndex == -1) { + if (isInitialized() && lastFilterIndex == -1) { //There is no enabled filter, we restore the original framebuffer //to the viewport to bypass the fpp. viewPort.setOutputFrameBuffer(outputBuffer);