Skip to content

Commit 5bf8fba

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents dc868f8 + b5116ed commit 5bf8fba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/rendertexture/RenderTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ var RenderTexture = new Class({
829829
*/
830830
preDestroy: function ()
831831
{
832-
if (this.canvas)
832+
if (this.canvas && !this._saved)
833833
{
834834
CanvasPool.remove(this.canvas);
835835
}

0 commit comments

Comments
 (0)