From c1af19072dd19d0c092022a0ee5409f0da237f42 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:51:16 +0700 Subject: [PATCH] Switch to WebGL canvas context --- dist/better-xcloud.user.js | 2 +- src/modules/player/webgl2-player.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index bc4dc65..bf37860 100644 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -6977,7 +6977,7 @@ class WebGL2Player { } #setupShaders() { BxLogger.info(LOG_TAG7, "Setting up", getPref("video_power_preference")); - const gl = this.#$canvas.getContext("webgl2", { + const gl = this.#$canvas.getContext("webgl", { isBx: !0, antialias: !0, alpha: !1, diff --git a/src/modules/player/webgl2-player.ts b/src/modules/player/webgl2-player.ts index ff2bebe..6d09b59 100644 --- a/src/modules/player/webgl2-player.ts +++ b/src/modules/player/webgl2-player.ts @@ -124,7 +124,7 @@ export class WebGL2Player { #setupShaders() { BxLogger.info(LOG_TAG, 'Setting up', getPref(PrefKey.VIDEO_POWER_PREFERENCE)); - const gl = this.#$canvas.getContext('webgl2', { + const gl = this.#$canvas.getContext('webgl', { isBx: true, antialias: true, alpha: false,