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

Use Uint8Array instead of Uint8ClampedArray for increased browser compatibility #12770

Merged
merged 1 commit into from Sep 17, 2021
Merged

Use Uint8Array instead of Uint8ClampedArray for increased browser compatibility #12770

merged 1 commit into from Sep 17, 2021

Conversation

tschaub
Copy link
Member

@tschaub tschaub commented Sep 16, 2021

As reported by @mike-000 in #12766, IE 11 and some Chromium browsers do not accept Uint8ClampedArray in gl.texImage2D(). The issue has been fixed in Chromium, but we can use Uint8Array instead where we create 8-bit arrays that get passed as texture data for more compatibility.

Closes #12766.

@mike-000
Copy link
Contributor

The Data Tiles example is now working on IE but I am unable to test the GeoTIFF example with Chrome 71 due to #12771

@tschaub tschaub merged commit 367d77d into openlayers:main Sep 17, 2021
@tschaub tschaub deleted the avoid-clamped branch September 17, 2021 20:30
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