From 41249a9a19e59d0260bbb6666d4524bc34bfa0c9 Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Sat, 18 Apr 2026 22:05:05 +1000 Subject: [PATCH] refactor: remove redundant Linux platform guard in GPU config --- electron/main.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/electron/main.ts b/electron/main.ts index e47c1b82..4adcc99c 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -69,14 +69,11 @@ function configureGpuAccelerationSwitches() { return; } - // Linux: prefer EGL over GLX for better Wayland compatibility. + // Linux (and other Unix): prefer EGL over GLX for better Wayland compatibility. // Disable VAAPI — many distros ship broken drivers that cause // "vaInitialize failed" and prevent the renderer from loading. - if (process.platform === "linux") { - app.commandLine.appendSwitch("use-gl", "egl"); - app.commandLine.appendSwitch("disable-features", "VaapiVideoDecoder,VaapiVideoEncoder"); - return; - } + app.commandLine.appendSwitch("use-gl", "egl"); + app.commandLine.appendSwitch("disable-features", "VaapiVideoDecoder,VaapiVideoEncoder"); } async function logSmokeExportGpuDiagnostics() {