From 41223a10e97e23fb5820dcd30e96dee844534472 Mon Sep 17 00:00:00 2001 From: Kyle McNally Date: Wed, 3 Apr 2024 14:42:23 -0400 Subject: [PATCH] Disable turning off accelerated graphics https://github.com/Sparticuz/chromium/issues/247 --- source/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/index.ts b/source/index.ts index a420692..1b5e70f 100644 --- a/source/index.ts +++ b/source/index.ts @@ -240,9 +240,11 @@ class Chromium { ]; // https://chromium.googlesource.com/chromium/src/+/main/docs/gpu/swiftshader.md - this.graphics - ? graphicsFlags.push("--use-gl=angle", "--use-angle=swiftshader") - : graphicsFlags.push("--disable-webgl"); + // Blocked by https://github.com/Sparticuz/chromium/issues/247 + //this.graphics + // ? graphicsFlags.push("--use-gl=angle", "--use-angle=swiftshader") + // : graphicsFlags.push("--disable-webgl"); + graphicsFlags.push("--use-gl=angle", "--use-angle=swiftshader"); const insecureFlags = [ "--allow-running-insecure-content", // https://source.chromium.org/search?q=lang:cpp+symbol:kAllowRunningInsecureContent&ss=chromium