Fix PIXI.Texture.removeTextureFromCache()
Fixes a couple of issues:

* Cached textures should also be removed from PIXI.BaseTextureCache to be fully removed. This was discussed here: http://www.html5gamedevs.com/topic/2182-pixi-web-app-slows-down-after-loading-20mb-of-images-on-ipad-mini2/?p=14945

* Base64-encoded images use the full base64 string as the hash key (rather than a much smaller image URL string for "normal" texture loading). This essentially doubles the browser memory usage for each cached image. Previously, when setting the value as null, the key remained, leaving an image worth of data still in the TextureCache. This fix is essential if loading & clearing lots of base64-encoded images.
1 parent 9c91116 commit fe7646b6dd2466792143abc9302802c0d06b78fd
@CacheFlowe CacheFlowe authored on 16 Feb 2014
Showing 1 changed file
View
src/pixi/textures/Texture.js