diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-09 17:29:31 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-09 17:29:31 +0100 |
| commit | 1511162b0a6c18c8e45f87299fee8cca82711f99 (patch) | |
| tree | 207455191bd79561839198b224804ff80937bcb4 /core/sys/wasm | |
| parent | cabc76d9cb47bec83426198dddc77ad4db89864e (diff) | |
webgpu: fix cstring as parameter not loading correctly
Diffstat (limited to 'core/sys/wasm')
| -rw-r--r-- | core/sys/wasm/js/odin.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/sys/wasm/js/odin.js b/core/sys/wasm/js/odin.js index 07a77952c..29227c526 100644 --- a/core/sys/wasm/js/odin.js +++ b/core/sys/wasm/js/odin.js @@ -110,7 +110,10 @@ class WasmMemoryInterface { } loadCstring(ptr) { - const start = this.loadPtr(ptr); + return this.loadCstringDirect(this.loadPtr(ptr)); + } + + loadCstringDirect(start) { if (start == 0) { return null; } |