Force enable WebGL on Electron/Linux
This commit is contained in:
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user