Skip to content

Conversation

@almarklein
Copy link
Member

#169 broke pyodide, this fixes it.

In #169 the canvas backend selects the present-method, but the preference of the context was not taken into account. With this PR that preference is also weighted.

The problem with the previous behavior is that 'screen' was normally preferred, which causes 'screen' to be selected with the pyodide backend and the bitmap context. But this means it would require wgpu-py, which is not loaded in the bitmap examples (and is not pyodide-ready yet).

@almarklein almarklein merged commit 2fe764e into main Jan 23, 2026
20 checks passed
@almarklein almarklein deleted the present-method-preference branch January 23, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants