mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
Merge pull request #2285 from allenevans/bug-clearGLTextures
Fix cache reference bug in web GL context restoration.
This commit is contained in:
commit
99b3ea4a1f
1 changed files with 2 additions and 2 deletions
|
@ -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 = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue