diff --git a/src/pixi/textures/BaseTexture.js b/src/pixi/textures/BaseTexture.js index d01b281..58828fb 100644 --- a/src/pixi/textures/BaseTexture.js +++ b/src/pixi/textures/BaseTexture.js @@ -94,6 +94,9 @@ PIXI.texturesToUpdate.push(scope); scope.dispatchEvent( { type: 'loaded', content: scope } ); }; + this.source.onerror = function() { + scope.dispatchEvent( {type: 'error', content: scope } ); + }; } this.imageUrl = null;