Skip to content

Commit 32c886b

Browse files
committed
Don't disable Chrome's GPU if using SwiftShader
1 parent 22b37e4 commit 32c886b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ def _set_chrome_options(
234234
# using Chrome's built-in headless mode. See link for details:
235235
# https://bugs.chromium.org/p/chromium/issues/detail?id=706008
236236
chrome_options.add_argument("--headless")
237-
# if headless or disable_gpu:
238-
chrome_options.add_argument("--disable-gpu") # (Now always on)
239237
# if (headless and "linux" in PLATFORM) or no_sandbox:
240238
chrome_options.add_argument("--no-sandbox") # (Now always on)
241239
if swiftshader:
242240
chrome_options.add_argument("--use-gl=swiftshader")
241+
else:
242+
chrome_options.add_argument("--disable-gpu")
243243
if "linux" in PLATFORM:
244244
chrome_options.add_argument("--disable-dev-shm-usage")
245245
return chrome_options

0 commit comments

Comments
 (0)