mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 05:33:35 +00:00
Delete Texture only applicable on render.gl
There is no deleteTexture on this.renderer when running on canvas. Destroying tilesprite (scene shutting down) would throw error.
This commit is contained in:
parent
1eff0b2889
commit
607ce3a9bb
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ var TileSprite = new Class({
|
|||
*/
|
||||
destroy: function ()
|
||||
{
|
||||
if (this.renderer)
|
||||
if (this.renderer.gl)
|
||||
{
|
||||
this.renderer.deleteTexture(this.tileTexture);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue