From ca24e23775e6fe609d630cc7887c4cbb19d30a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Thu, 5 Jun 2025 14:04:41 +0200 Subject: [PATCH] :bug: Fix set-shape-fills serialization (wasm renderer) --- frontend/src/app/render_wasm/api.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 39bb2d3c65..dbaac9252e 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -249,11 +249,11 @@ ;; write fill data to heap (loop [fills (seq fills) - current-offset 0] + current-offset offset] (when-not (empty? fills) - (let [fill (first fills)] - (sr-fills/write-fill! offset dview fill) - (recur (rest fills) (+ current-offset sr-fills/FILL-BYTE-SIZE))))) + (let [fill (first fills) + new-offset (sr-fills/write-fill! current-offset dview fill)] + (recur (rest fills) new-offset)))) ;; send fills to wasm (h/call wasm/internal-module "_set_shape_fills")