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

Clamp Uint8Arrays in typedArrayFromDataType #8631

Merged
merged 3 commits into from Mar 13, 2024

Conversation

felixpalmer
Copy link
Collaborator

@felixpalmer felixpalmer commented Mar 12, 2024

For #8582 & #8606. Fixes regression from #8572

The previous implementation clamped uint8 arrays whereas getTypedArrayFromDataType() from luma does not

This breaks any application which returns out of range colors in an accessor, for example the LineLayer & Mapbox examples from the website (compare with/without fix):

Screen.Recording.2024-03-12.at.10.08.13.mov
Screen.Recording.2024-03-12.at.10.08.39.mov

Change List

  • Clamp Uint8Arrays in typedArrayFromDataType

@coveralls
Copy link

coveralls commented Mar 12, 2024

Coverage Status

coverage: 83.899% (+0.002%) from 83.897%
when pulling 21a606a on felix/vertextype-clamped
into 89aa8d0 on master.

@felixpalmer felixpalmer merged commit 72465dd into master Mar 13, 2024
2 checks passed
@felixpalmer felixpalmer deleted the felix/vertextype-clamped branch March 13, 2024 08:42
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

4 participants