diff --git a/src/textures/TextureManager.js b/src/textures/TextureManager.js index 9f01412e7b..8bc628d0e9 100644 --- a/src/textures/TextureManager.js +++ b/src/textures/TextureManager.js @@ -366,6 +366,11 @@ var TextureManager = new Class({ { var texture = _this.create(key, image); + if (!texture) + { + return; + } + Parser.Image(texture, 0); _this.emit(Events.ADD, key, texture);