Skip to content

Commit 1a02d2d

Browse files
committed
Fix cache reference bug in web GL context restoration.
1 parent 172f972 commit 1a02d2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/loader/Cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,9 +1943,9 @@ Phaser.Cache.prototype = {
19431943
*/
19441944
clearGLTextures: function () {
19451945

1946-
for (var key in this.cache.image)
1946+
for (var key in this._cache.image)
19471947
{
1948-
this.cache.image[key].base._glTextures = [];
1948+
this._cache.image[key].base._glTextures = [];
19491949
}
19501950

19511951
},

0 commit comments

Comments
 (0)