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 exception thrown from isWebGL2 check #3238

Merged
merged 2 commits into from
Oct 20, 2023
Merged

Conversation

msbarry
Copy link
Contributor

@msbarry msbarry commented Oct 20, 2023

gl.getParameter(gl.VERSION) returns null on some browsers, so gl.getParameter(gl.VERSION).startsWith(...) throws an exception. This change makes it so that isWebGL2 returns false on browsers where gl.getParameter(gl.VERSION) returns null.

@msbarry msbarry changed the title Fix exception thrown from webgl2.ts Fix exception thrown from isWebGL2 check Oct 20, 2023
@HarelM HarelM enabled auto-merge (squash) October 20, 2023 10:47
@HarelM HarelM merged commit fbdb32d into maplibre:main Oct 20, 2023
@rejas rejas mentioned this pull request Oct 25, 2023
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