Force enable WebGL on Electron/Linux

This commit is contained in:
Joshua Granick
2018-08-06 14:47:07 -07:00
parent 6753c6d3ca
commit 9bbfd40f8b

View File

@@ -7,6 +7,8 @@ class ElectronSetup {
static function main()
{
electron.main.App.commandLine.appendSwitch('ignore-gpu-blacklist', 'true');
var windows:Array<OpenFLWindow> = [
::foreach windows::
{
@@ -45,14 +47,16 @@ class ElectronSetup {
var frame:Bool = window.borderless == false;
electron.main.App.on( 'ready', function(e) {
ElectronSetup.window = new BrowserWindow( {
var config:Dynamic = {
fullscreen: window.fullscreen,
frame:frame,
resizable: window.resizable,
alwaysOnTop: window.alwaysOnTop,
width:width,
height:height
} );
height:height,
webgl:window.hardware
};
ElectronSetup.window = new BrowserWindow(config);
ElectronSetup.window.on( closed, function() {
if( js.Node.process.platform != 'darwin' )