take deprecation into account
This commit is contained in:
parent
b3c1433b67
commit
464121598d
1 changed files with 6 additions and 0 deletions
|
|
@ -9,3 +9,9 @@ import * as PIXI from 'pixi.js';
|
||||||
// from filter packages that use the deprecated settings.FILTER_RESOLUTION
|
// from filter packages that use the deprecated settings.FILTER_RESOLUTION
|
||||||
PIXI.Filter.defaultResolution = 2;
|
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;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue