From 464121598d6deacdb47fbe03f363eb16c588c869 Mon Sep 17 00:00:00 2001 From: saiminh Date: Sun, 11 Jan 2026 18:24:43 +1300 Subject: [PATCH] take deprecation into account --- src/lib/utils/pixiInit.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/utils/pixiInit.ts b/src/lib/utils/pixiInit.ts index 523ec27..2cfa26d 100644 --- a/src/lib/utils/pixiInit.ts +++ b/src/lib/utils/pixiInit.ts @@ -9,3 +9,9 @@ import * as PIXI from 'pixi.js'; // from filter packages that use the deprecated settings.FILTER_RESOLUTION PIXI.Filter.defaultResolution = 2; +// Also set the deprecated setting for backward compatibility with older packages +// This prevents warnings from packages like @pixi/filter-advanced-bloom that +// still check the deprecated settings.FILTER_RESOLUTION during module initialization +if (PIXI.settings && 'FILTER_RESOLUTION' in PIXI.settings) { + (PIXI.settings as any).FILTER_RESOLUTION = 2; +}