Skip to content

Commit

Permalink
Disable turning off accelerated graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparticuz committed Apr 3, 2024
1 parent e4de013 commit 41223a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41223a1

Please sign in to comment.