mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +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 ()
|
preDestroy: function ()
|
||||||
{
|
{
|
||||||
if (this.canvas)
|
if (this.canvas && !this._saved)
|
||||||
{
|
{
|
||||||
CanvasPool.remove(this.canvas);
|
CanvasPool.remove(this.canvas);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue