Skip to content

Commit aec4b80

Browse files
authored
Merge pull request #623 from seleniumbase/gpu-swiftshader
Don't disable Chrome's GPU if using SwiftShader
2 parents 22b37e4 + 2df6b0b commit aec4b80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.42.11',
57+
version='1.42.12',
5858
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)