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

cleanup_build_scripts
Nehon 9 years ago
parent 3bce0f4f1a
commit 838978ed15
  1. 4
      jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java

@ -402,7 +402,9 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
viewPort.setOutputFrameBuffer(outputBuffer);
viewPort = null;
renderFrameBuffer.dispose();
if(renderFrameBuffer != null){
renderFrameBuffer.dispose();
}
if(depthTexture!=null){
depthTexture.getImage().dispose();
}

Loading…
Cancel
Save