We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fac60 commit 8511cd7Copy full SHA for 8511cd7
src/javascript/webgl-rendering-context.js
@@ -1304,7 +1304,7 @@ class WebGLRenderingContext extends NativeWebGLRenderingContext {
1304
1305
if (typeof data === 'object') {
1306
let u8Data = null
1307
- if (isTypedArray(data)) {
+ if (isTypedArray(data) || data instanceof DataView) {
1308
u8Data = unpackTypedArray(data)
1309
} else if (data instanceof ArrayBuffer) {
1310
u8Data = new Uint8Array(data)
@@ -1386,7 +1386,7 @@ class WebGLRenderingContext extends NativeWebGLRenderingContext {
1386
}
1387
1388
1389
1390
1391
1392
0 commit comments