Skip to content

Commit b238b15

Browse files
authored
Fix webgl error for IE11 with uploading painter::emptyTexture (#9410)
1 parent da4fa2f commit b238b15

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)