diff --git a/src/gameobjects/rendertexture/RenderTexture.js b/src/gameobjects/rendertexture/RenderTexture.js index 6a5bf36f3..1262387dc 100644 --- a/src/gameobjects/rendertexture/RenderTexture.js +++ b/src/gameobjects/rendertexture/RenderTexture.js @@ -839,7 +839,10 @@ var RenderTexture = new Class({ this.renderer.deleteFramebuffer(this.framebuffer); } - if (!this._saved) this.texture.destroy(); + if (!this._saved) + { + this.texture.destroy(); + } } });