Browse Source

Fix final (???) WASM issue

ssao
A.Olokhtonov 10 months ago
parent
commit
c9d1706b6e
  1. 2
      client/speed.js

2
client/speed.js

@ -70,7 +70,7 @@ function do_lod_wasm(state, context) {
// copy result back // copy result back
const wasm_segments = new Uint32Array(state.wasm.exports.memory.buffer, segments, segment_count); 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.data.set(wasm_segments);
state.segments.size = segment_count; state.segments.size = segment_count;

Loading…
Cancel
Save