From b5d8117ac6ee39113b464ddb8bc9e679666bddc0 Mon Sep 17 00:00:00 2001 From: jfboeve Date: Thu, 2 Oct 2025 14:35:06 +0200 Subject: [PATCH] fix: block infinite retries when maxRetryCount is null --- src/core/textures/Texture.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/textures/Texture.ts b/src/core/textures/Texture.ts index e4e2b615..0e06aec8 100644 --- a/src/core/textures/Texture.ts +++ b/src/core/textures/Texture.ts @@ -292,6 +292,10 @@ export abstract class Texture extends EventEmitter { } load(): void { + if (this.maxRetryCount === null && this.retryCount > 0) { + return; + } + if (this.maxRetryCount !== null && this.retryCount > this.maxRetryCount) { // We've exceeded the max retry count, do not attempt to load again return;