[Core] Compensate for OSes that don't return 64b aligned memory from malloc
Some checks are pending
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Waiting to run
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Waiting to run

This commit is contained in:
Nic Barker 2025-01-29 21:16:24 +13:00
parent 1bcf256e4d
commit 5fae7a6249

2
clay.h
View File

@ -3066,7 +3066,7 @@ uint32_t Clay_MinMemorySize(void) {
Clay__Context_Allocate_Arena(&fakeContext.internalArena);
Clay__InitializePersistentMemory(&fakeContext);
Clay__InitializeEphemeralMemory(&fakeContext);
return fakeContext.internalArena.nextAllocation;
return fakeContext.internalArena.nextAllocation + 128;
}
CLAY_WASM_EXPORT("Clay_CreateArenaWithCapacityAndMemory")