diff --git a/src/neuroglancer/datasource/graphene/backend.ts b/src/neuroglancer/datasource/graphene/backend.ts index 5c28b23af..0e6272314 100644 --- a/src/neuroglancer/datasource/graphene/backend.ts +++ b/src/neuroglancer/datasource/graphene/backend.ts @@ -141,10 +141,10 @@ interface GrapheneMultiscaleManifestChunk extends MultiscaleManifestChunk { function decodeMultiscaleManifestChunk(chunk: GrapheneMultiscaleManifestChunk, response: any) { verifyObject(response); chunk.manifest = { - chunkShape: response.chunkShape, - chunkGridSpatialOrigin: response.chunkGridSpatialOrigin, - lodScales: response.lodScales, - octree: response.octree, + chunkShape: vec3.clone(response.chunkShape), + chunkGridSpatialOrigin: vec3.create(), + lodScales: new Float32Array(response.lodScales), + octree: new Uint32Array(response.octree), vertexOffsets: new Float32Array(response.lodScales.length * 3), clipLowerBound: vec3.create(), clipUpperBound: vec3.create(),