From 4d77d0619bf876b48ccb2529526e13cf6019019d Mon Sep 17 00:00:00 2001
From: openbuilds-engineer
Date: Thu, 11 Oct 2018 19:32:11 +0200
Subject: [PATCH] Add more overrides for Linux WebGL with opensource drivers
---
index.js | 7 ++++++-
package.json | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 4e6e7dd..56377fd 100644
--- a/index.js
+++ b/index.js
@@ -2216,7 +2216,12 @@ if (isElectron()) {
};
- // electronApp.commandLine.appendSwitch("--ignore-gpu-blacklist");
+
+ electronApp.commandLine.appendSwitch('ignore-gpu-blacklist', 'true')
+ electronApp.commandLine.appendSwitch('enable-gpu-rasterization', 'true')
+ electronApp.commandLine.appendSwitch('enable-zero-copy', 'true')
+ electronApp.commandLine.appendSwitch('disable-software-rasterizer', 'true')
+ electronApp.commandLine.appendSwitch('enable-native-gpu-memory-buffers', 'true')
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
diff --git a/package.json b/package.json
index d3f61b1..fb7d696 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "OpenBuildsMachineDriver",
- "version": "1.0.103",
+ "version": "1.0.104",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds ",