phaserjs / phaser-ce

Phaser CE is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.

Home Page:http://phaser.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sprite's tintedTexture can't be removed when call destroy

taoabc opened this issue · comments

commented

This Issue is about

  • A bug in the API: PIXI.Sprite.destroy
    • Phaser version(s): 2.13.3
    • Live example: none
    • What steps produce the bug: 1. set tint color for sprite, 2. call sprite.destroy
    • What should happen: Phaser.CanvasPool.pool will free canvas which sprite used
    • What happens instead: Phaser.CanvasPool.pool keep growing
    • If there's an error: Not a error, maybe memory leak.
      • What's the error message? none
      • What's the error trace (expand the error message)? none

I'm not sure if this is a normal behavior or a issue. But when I keep new sprite and destroy, the Phaser.CanvasPool.pool keep growing and it's remove function never be called.