Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

refactor: remove redundant Linux platform guard in GPU config

webadderall596d6faa8ddf
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() {