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 bugs in glow on web #1092

Merged
merged 5 commits into from
Jan 10, 2022
Merged

Fix bugs in glow on web #1092

merged 5 commits into from
Jan 10, 2022

Conversation

emilk
Copy link
Owner

@emilk emilk commented Jan 10, 2022

Closes #1087

Two major bugs!

The first introduced in #888:

We would always get the WebGL1 context from the canvas first, before trying WebGL2. This made later attempts to get the webgl2 context failed (since we already told the browser we were interested in WebGL1).

The second introduced in #1020:
We used to check WEBGL_debug_renderer_info before calling gl.get_parameter(web_sys::WebglDebugRendererInfo::UNMASKED_RENDERER_WEBGL). I removed that check in #1020, making the get_parameter fail with an OpenGL error, which lead to later asserts failing.

I've since down-graded these asserts to log instead of crashing.

I removed this check in #1020
because it produced a warning on Firefox. Better a warning
than an OpenGL error though.
The browser will only allow the first thing we check, so this will
prevent webgl2 from working.
@emilk emilk merged commit 205e04a into master Jan 10, 2022
@emilk emilk deleted the fix-glow-web branch January 10, 2022 22:19
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.

glow doesn't work on web on Chromium
1 participant