mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
refactor: remove redundant Linux platform guard in GPU config
This commit is contained in:
+3
-6
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user