mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Switch to WebGL canvas context
This commit is contained in:
parent
5dc6f0c2f6
commit
c1af19072d
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@ -6977,7 +6977,7 @@ class WebGL2Player {
|
|||||||
}
|
}
|
||||||
#setupShaders() {
|
#setupShaders() {
|
||||||
BxLogger.info(LOG_TAG7, "Setting up", getPref("video_power_preference"));
|
BxLogger.info(LOG_TAG7, "Setting up", getPref("video_power_preference"));
|
||||||
const gl = this.#$canvas.getContext("webgl2", {
|
const gl = this.#$canvas.getContext("webgl", {
|
||||||
isBx: !0,
|
isBx: !0,
|
||||||
antialias: !0,
|
antialias: !0,
|
||||||
alpha: !1,
|
alpha: !1,
|
||||||
|
@ -124,7 +124,7 @@ export class WebGL2Player {
|
|||||||
#setupShaders() {
|
#setupShaders() {
|
||||||
BxLogger.info(LOG_TAG, 'Setting up', getPref(PrefKey.VIDEO_POWER_PREFERENCE));
|
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,
|
isBx: true,
|
||||||
antialias: true,
|
antialias: true,
|
||||||
alpha: false,
|
alpha: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user