Skip to content

Commit

Permalink
Fix webgl error for IE11 with uploading painter::emptyTexture (mapbox…
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji authored and mike-unearth committed Mar 18, 2020
1 parent 7351de8 commit 6bf548b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Painter {
this.emptyTexture = new Texture(context, {
width: 1,
height: 1,
data: new Uint8ClampedArray([0, 0, 0, 0])
data: new Uint8Array([0, 0, 0, 0])
}, context.gl.RGBA);

const gl = this.context.gl;
Expand Down

0 comments on commit 6bf548b

Please sign in to comment.