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

This commit is contained in:
Nehon 2016-03-08 20:59:52 +01:00
parent 3bce0f4f1a
commit 838978ed15

View File

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