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

add(core) enforceWebGL2 #2067

Merged
merged 4 commits into from Apr 5, 2024
Merged

add(core) enforceWebGL2 #2067

merged 4 commits into from Apr 5, 2024

Conversation

chrisgervang
Copy link
Contributor

Background

Use enforceWebGL2 when a library is creating its own WebGL1 context privately, in order to create a WebGL2 context that is compatible with luma.gl.

Change List

  • Adds enforceWebGL2

Signed-off-by: Chris Gervang <chris@gervang.com>
@Pessimistress
Copy link
Collaborator

What's the use case here? I think the latest versions of all supported base map libraries create WebGL2 by default.

@chrisgervang
Copy link
Contributor Author

This can be used when an application isn't ready to upgrade from Mapbox v1 but still needs to do interleaved rendering. We're trying to upgrade Hubble and Kepler to v9 but are blocked since MapLibre has an unresolved rendering issue.

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, and since it unblocks the hubble.gl v9 upgrade I am strongly in favor of landing it.

  • I made a push on the docs.
  • Possible we add one test case?
  • I called out that there may be an issue with some WebGL1 extensions not being available under WebGL2, potentially causing mapbox to not be able to use certain blend modes etc. It is not very hard to emulate these extensions, if we see any issues we could scan their code and see which extensions they are using.

@chrisgervang
Copy link
Contributor Author

Thanks! Yes, I'll add a test

Signed-off-by: Chris Gervang <chris@gervang.com>
@ibgreen ibgreen merged commit b5eb69a into master Apr 5, 2024
2 checks passed
@ibgreen ibgreen deleted the chr/enforce-webgl2 branch April 5, 2024 18:33
Pessimistress pushed a commit that referenced this pull request Apr 13, 2024
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.

None yet

3 participants