|
|
|
@ -70,7 +70,7 @@ function do_lod_wasm(state, context) {
@@ -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; |
|
|
|
|