From 59821177dd5c12efb4c918c9e2cb31663c924ac4 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Tue, 9 Feb 2021 20:49:56 +0100 Subject: [PATCH] fix GL_INVALID_OPERATION on render --- render/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/render/index.js b/render/index.js index 435c94b..cd8af33 100644 --- a/render/index.js +++ b/render/index.js @@ -11,6 +11,10 @@ var path = require('path'), ipcMain = require('electron').ipcMain, os = require('os'); +// fix GL_INVALID_OPERATION on render (https://github.com/electron/electron/issues/20702#issuecomment-582587510) +app.disableHardwareAcceleration(); +app.commandLine.appendSwitch("disable-software-rasterizer"); + /** * The step option * To reduce the number of rendered frames (step > 1)