diff --git a/src/framework/parsers/glb-parser.js b/src/framework/parsers/glb-parser.js index 59a8e926e85..b597be83a5f 100644 --- a/src/framework/parsers/glb-parser.js +++ b/src/framework/parsers/glb-parser.js @@ -767,7 +767,7 @@ const createMesh = (device, gltfMesh, accessors, bufferViews, vertexBufferDict, indices = new Uint16Array(indices); } - const indexBuffer = new IndexBuffer(device, indexFormat, indices.length, BUFFER_STATIC, indices); + const indexBuffer = new IndexBuffer(device, indexFormat, indices.length, BUFFER_STATIC, indices.buffer); mesh.indexBuffer[0] = indexBuffer; mesh.primitive[0].count = indices.length; } else {