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
@ -402,7 +402,9 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
|
|||||||
viewPort.setOutputFrameBuffer(outputBuffer);
|
viewPort.setOutputFrameBuffer(outputBuffer);
|
||||||
viewPort = null;
|
viewPort = null;
|
||||||
|
|
||||||
|
if(renderFrameBuffer != null){
|
||||||
renderFrameBuffer.dispose();
|
renderFrameBuffer.dispose();
|
||||||
|
}
|
||||||
if(depthTexture!=null){
|
if(depthTexture!=null){
|
||||||
depthTexture.getImage().dispose();
|
depthTexture.getImage().dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user