Skip to content

Fix bugs in glow on web#1092

Merged
emilk merged 5 commits intomasterfrom
fix-glow-web
Jan 10, 2022
Merged

Fix bugs in glow on web#1092
emilk merged 5 commits intomasterfrom
fix-glow-web

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.

emilk added 5 commits January 10, 2022 22:57
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