In TilingSprite's _onBitmapLoad method, there's no bitmap check like in Sprite's _onBitmapLoad. This could cause errors when the bitmap changes multiple times, as it may attempt to use a null bitmap.
JavaScript:
Sprite.prototype._onBitmapLoad = function(bitmapLoaded) {
if (bitmapLoaded === this._bitmap) {
if (this._refreshFrame && this._bitmap) {
this._refreshFrame = false;
this._frame.width = this._bitmap.width;
this._frame.height = this._bitmap.height;
}
}
this._refresh();
};
JavaScript:
TilingSprite.prototype._onBitmapLoad = function() {
this.texture.baseTexture = this._bitmap.baseTexture;
this._refresh();
};