Fix a bug in the HTML renderer

This commit is contained in:
Nic Barker 2024-12-28 20:30:38 +13:00
parent ac473d6fe7
commit 5fe11c6535

View File

@ -338,7 +338,7 @@
memoryDataView = new DataView(new Uint8Array(instance.exports.memory.buffer).buffer);
scratchSpaceAddress = instance.exports.__heap_base.value;
heapSpaceAddress = instance.exports.__heap_base.value + 1024;
let arenaAddress = scratchSpaceAddress;
let arenaAddress = scratchSpaceAddress + 8;
window.instance = instance;
createMainArena(arenaAddress, heapSpaceAddress);
memoryDataView.setFloat32(instance.exports.__heap_base.value, window.innerWidth, true);