From c9d1706b6e1e8df26b2a250af09949fa4ebc619f Mon Sep 17 00:00:00 2001 From: "A.Olokhtonov" Date: Sat, 13 Jan 2024 13:52:59 +0300 Subject: [PATCH] Fix final (???) WASM issue --- client/speed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;