Skip to content
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

Fix web example #14

Merged
merged 2 commits into from
Oct 21, 2023
Merged

Fix web example #14

merged 2 commits into from
Oct 21, 2023

Conversation

tritao
Copy link
Contributor

@tritao tritao commented Oct 21, 2023

Fix duplicated GLFW window creation.

This was preventing the web context from being created due to an internal GLFW check preventing duplicate window creation.

Properly reset the viewport to avoid squished viewport.

This copies the lines from bgfx-sys which is doing this and looks ok out of the box.

Before:

image

After:

image

This was preventing the web context from being created due to an
internal GLFW error preventing duplicate window creation.
This copies the lines from bgfx-sys which is doing this and looks ok out
of the box.
@emoon emoon merged commit 4ecf88c into emoon:main Oct 21, 2023
4 checks passed
@emoon
Copy link
Owner

emoon commented Oct 21, 2023

Thanks!

@emoon
Copy link
Owner

emoon commented Oct 23, 2023

0.19 has been released that includes these fixes (along with the latest bgfx-sys also)

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