Skip to content

Commit 6bf548b

Browse files
karimnaajimike-unearth
authored andcommitted
Fix webgl error for IE11 with uploading painter::emptyTexture (mapbox#9410)
1 parent 7351de8 commit 6bf548b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render/painter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class Painter {
210210
this.emptyTexture = new Texture(context, {
211211
width: 1,
212212
height: 1,
213-
data: new Uint8ClampedArray([0, 0, 0, 0])
213+
data: new Uint8Array([0, 0, 0, 0])
214214
}, context.gl.RGBA);
215215

216216
const gl = this.context.gl;

0 commit comments

Comments
 (0)