Merge pull request #2285 from allenevans/bug-clearGLTextures

Fix cache reference bug in web GL context restoration.
This commit is contained in:
Richard Davey 2016-02-01 19:22:37 +02:00
commit 99b3ea4a1f

View file

@ -1943,9 +1943,9 @@ Phaser.Cache.prototype = {
*/ */
clearGLTextures: function () { clearGLTextures: function () {
for (var key in this.cache.image) for (var key in this._cache.image)
{ {
this.cache.image[key].base._glTextures = []; this._cache.image[key].base._glTextures = [];
} }
}, },