mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
RenderTexture: Texture is always destroyed (canvas)
Forgot to check the flag for canvas renderer.
This commit is contained in:
parent
bd40360dbc
commit
1fa16f00df
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,7 @@ var RenderTexture = new Class({
|
|||
*/
|
||||
preDestroy: function ()
|
||||
{
|
||||
if (this.canvas)
|
||||
if (this.canvas && !this._saved)
|
||||
{
|
||||
CanvasPool.remove(this.canvas);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue