Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions arcade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ def configure_logging(level: int | None = None):
else:
pyglet.options.dpi_scaling = "stretch"

# WebGL has an alpha channel in the backing buffer by default that is
# 0.0 unless you explicitly clear the alpha channel to 1.0. Disabling
# this channel causes it to behave more in line with how full OpenGL works.
if sys.platform == "emscripten":
pyglet.options.pyodide.context_options["alpha"] = False

# Env variable shortcut for headless mode
headless: Final[bool] = bool(os.environ.get("ARCADE_HEADLESS"))
if headless:
Expand Down
Loading