Skip to content

Commit

Permalink
Merge pull request hokein#50 from cg-cnu/webgl
Browse files Browse the repository at this point in the history
added ignore-gpu-blacklist flag
  • Loading branch information
hokein authored Sep 25, 2017
2 parents 38a9046 + 26becdd commit 3681b6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webgl/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ const {app, BrowserWindow} = require('electron');

let mainWindow;

// Chrome by default black lists certain GPUs because of bugs.
// if your are not able to view webgl try enabling --ignore-gpu-blacklist option
// But, this will make electron/chromium less stable.
app.commandLine.appendSwitch('--ignore-gpu-blacklist');

// Quit when all windows are closed.
app.on('window-all-closed', function() {
if (process.platform != 'darwin')
Expand Down

0 comments on commit 3681b6c

Please sign in to comment.