take deprecation into account

This commit is contained in:
saiminh 2026-01-11 18:24:43 +13:00
parent b3c1433b67
commit 464121598d

View file

@ -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;
}