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:
parent
3bce0f4f1a
commit
838978ed15
@ -401,8 +401,10 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
|
|||||||
viewPort.getCamera().setViewPort(left, right, bottom, top);
|
viewPort.getCamera().setViewPort(left, right, bottom, top);
|
||||||
viewPort.setOutputFrameBuffer(outputBuffer);
|
viewPort.setOutputFrameBuffer(outputBuffer);
|
||||||
viewPort = null;
|
viewPort = null;
|
||||||
|
|
||||||
renderFrameBuffer.dispose();
|
if(renderFrameBuffer != null){
|
||||||
|
renderFrameBuffer.dispose();
|
||||||
|
}
|
||||||
if(depthTexture!=null){
|
if(depthTexture!=null){
|
||||||
depthTexture.getImage().dispose();
|
depthTexture.getImage().dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user