From f0bc7fc1b8e64a0c0ff4b6922651a487c6d33c8b Mon Sep 17 00:00:00 2001 From: dev7355608 Date: Thu, 19 May 2022 15:12:26 +0200 Subject: [PATCH] Set PREFER_ENV default to WEBGL2 for all devices (#7974) --- packages/core/src/settings.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/core/src/settings.ts b/packages/core/src/settings.ts index 844699a48b..7f0e9cab1f 100644 --- a/packages/core/src/settings.ts +++ b/packages/core/src/settings.ts @@ -1,6 +1,5 @@ import { settings } from '@pixi/settings'; import { ENV } from '@pixi/constants'; -import { isMobile } from '@pixi/utils'; /** * The maximum support for using WebGL. If a device does not @@ -9,16 +8,13 @@ import { isMobile } from '@pixi/utils'; * explicitly remove feature support to target a more stable * baseline, prefer a lower environment. * - * Due to {@link https://bugs.chromium.org/p/chromium/issues/detail?id=934823|bug in chromium} - * we disable webgl2 by default for all non-apple mobile devices. - * * @static * @name PREFER_ENV * @memberof PIXI.settings * @type {number} * @default PIXI.ENV.WEBGL2 */ -settings.PREFER_ENV = isMobile.any ? ENV.WEBGL : ENV.WEBGL2; +settings.PREFER_ENV = ENV.WEBGL2; /** * If set to `true`, *only* Textures and BaseTexture objects stored