aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaya Allamsetty <jaya.allamsetty@8x8.com>2020-12-03 16:38:07 -0500
committerSaúl Ibarra Corretgé <s@saghul.net>2020-12-04 09:08:04 +0100
commit73f9c6178fba86b9b930b2333f68d93b144d708d (patch)
treedde9423dd280f8ddd247da8e0d625207f2ec3a67
parent1c53296e85e11747a809d8034d0f85e20a7f52bf (diff)
fix: Disable hw acceleration across all platforms.
Fixes https://github.com/jitsi/jitsi-meet-electron/issues/458.
-rw-r--r--main.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.js b/main.js
index 93fc87a..f5bd610 100644
--- a/main.js
+++ b/main.js
@@ -29,10 +29,8 @@ const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS) || (process.argv.indexO
// We need this because of https://github.com/electron/electron/issues/18214
app.commandLine.appendSwitch('disable-site-isolation-trials');
-// We need to disable hardware acceleration on Windows because its causes the screenshare to flicker.
-if (process.platform === 'win32') {
- app.commandLine.appendSwitch('disable-gpu');
-}
+// We need to disable hardware acceleration because its causes the screenshare to flicker.
+app.commandLine.appendSwitch('disable-gpu');
// Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
app.allowRendererProcessReuse = false;