From c3f85f4b98ac383ed295af69a87d5f5156041905 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Thu, 1 Jan 2026 07:27:19 -0800 Subject: [PATCH] Increase webgl context max to 32 Defaults to 16, this doubles it since sticky scroll takes up another one since that was added. Fixes #285574 --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index ec188d02721e..ec2e45c31d25 100644 --- a/src/main.ts +++ b/src/main.ts @@ -352,6 +352,10 @@ function configureCommandlineSwitchesSync(cliArgs: NativeParsedArgs) { // Runtime sets the default version to 3, refs https://github.com/electron/electron/pull/44426 app.commandLine.appendSwitch('xdg-portal-required-version', '4'); + // Increase the maximum number of active WebGL contexts as each terminal may + // use up to 2 + app.commandLine.appendSwitch('max-active-webgl-contexts', '32'); + return argvConfig; }