fix(chromium): force --use-gl=swiftshader on Windows (#6272)

This commit is contained in:
Yury Semikhatsky 2021-04-22 10:06:39 -07:00 committed by GitHub
parent 3a93c419f8
commit 357224d6b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,6 +134,9 @@ export class Chromium extends BrowserType {
if (options.devtools)
chromeArguments.push('--auto-open-devtools-for-tabs');
if (options.headless) {
// See http://crbug.com/1200964
if (process.platform === 'win32')
chromeArguments.push('--use-gl=swiftshader');
chromeArguments.push(
'--headless',
'--hide-scrollbars',