diff --git a/client/speed.js b/client/speed.js index c5a6abc..0cff410 100644 --- a/client/speed.js +++ b/client/speed.js @@ -70,7 +70,7 @@ function do_lod_wasm(state, context) { // copy result back const wasm_segments = new Uint32Array(state.wasm.exports.memory.buffer, segments, segment_count); - const wasm_segments_from = new Uint32Array(state.wasm.exports.memory.buffer, segments_from, context.clipped_indices.size); + const wasm_segments_from = new Uint32Array(state.wasm.exports.memory.buffer, segments_from, context.clipped_indices.size + 1); state.segments.data.set(wasm_segments); state.segments.size = segment_count;