refactor: remove redundant Linux platform guard in GPU config

This commit is contained in:
webadderall
2026-04-18 22:05:05 +10:00
parent d4a7c863e8
commit 41249a9a19
+3 -6
View File
@@ -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() {