From d226b2cda7dc6230d655ecb775666275ea41dd6d Mon Sep 17 00:00:00 2001 From: samme Date: Thu, 19 Dec 2024 17:54:32 -0800 Subject: [PATCH] Fail gracefully for late texture key conflict in addBase64() --- src/textures/TextureManager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/textures/TextureManager.js b/src/textures/TextureManager.js index 18ba69dae9..da3599ba05 100644 --- a/src/textures/TextureManager.js +++ b/src/textures/TextureManager.js @@ -383,6 +383,11 @@ var TextureManager = new Class({ { var texture = _this.create(key, image); + if (!texture) + { + return; + } + Parser.Image(texture, 0); _this.emit(Events.ADD, key, texture);