Fixed problem with outdated loader and error handler.s
This commit is contained in:
parent
51b0ef4b1b
commit
074fb67906
@ -85,8 +85,8 @@ export class PIXITileLoader extends TileLoader {
|
||||
super(tiles)
|
||||
this.destroyed = false
|
||||
this.loader = new PIXI.Loader()
|
||||
this.loader.on('load', this._onLoaded.bind(this))
|
||||
this.loader.on('error', this._onError.bind(this))
|
||||
this.loader.onLoad.add(this._onLoaded.bind(this))
|
||||
this.loader.onError.add(this._onError.bind(this))
|
||||
if (compression) {
|
||||
this.loader.use(PIXI.compressedTextures.ImageParser.use)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user