소스 검색

fix NPE in FilterPostProcessor: corresponds to SVN revision 10920 in trunk

[email protected] 11 년 전
부모
커밋
dc4d959617
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      engine/src/core/com/jme3/post/FilterPostProcessor.java

+ 1 - 1
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);