mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
refactor: remove redundant Linux platform guard in GPU config
This commit is contained in:
1 parent
dbd5a2a9a2
commit
596d6faa8d
1 file changed
+3
-6
+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