Skip to content

Creating Mutliple Windows not possible on Emscripten #12512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 4 tasks
Temdog007 opened this issue Mar 10, 2025 · 1 comment · May be fixed by #12575
Open
2 of 4 tasks

Creating Mutliple Windows not possible on Emscripten #12512

Temdog007 opened this issue Mar 10, 2025 · 1 comment · May be fixed by #12575
Assignees
Milestone

Comments

@Temdog007
Copy link
Contributor

Temdog007 commented Mar 10, 2025

Emscripten builds cannot create multiple windows because the code is written as if there will only be one canvas element in the document. I've looked into the code and believe these tasks needed to fix this issue:

@Semphriss
Copy link
Contributor

Based on my experience with Emscripten and HTML5 canvases, since contexts are bound to their canvas like renderers to their window, I would find it more intuitive if one SDL window == one HTML5 canvas, and disallow (or, if possible, implement in a dedicated function) the dynamic change of which canvas is bound to a window.

@Temdog007 Temdog007 linked a pull request Mar 18, 2025 that will close this issue
@slouken slouken added this to the 3.4.0 milestone Mar 21, 2025
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 a pull request may close this issue.

4 participants