瀏覽代碼

Null check for the renderFrameBuffer of the fpp when cleaning up the fpp. It may be null if multisampling is enabled.

Nehon 9 年之前
父節點
當前提交
838978ed15
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

+ 4 - 2
jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

@@ -401,8 +401,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
             viewPort.getCamera().setViewPort(left, right, bottom, top);
             viewPort.setOutputFrameBuffer(outputBuffer);
             viewPort = null;
-            
-            renderFrameBuffer.dispose();
+
+            if(renderFrameBuffer != null){
+                renderFrameBuffer.dispose();
+            }
             if(depthTexture!=null){
                depthTexture.getImage().dispose();
             }