A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
375
stars
36
forks
source link
ogt_vox: add type-based memory alignment within the internal sub allocator #63
we now use a new _vox_suballoc_array type that internally aligns base offset to the size of the type by default (in cases where alignment matters, I'd expect the struct to be padded to the natural alignment and for all members to have appropriate alignment padding for them too)
this still relies upon a reasonable alignment from _vox_malloc, which should either be guaranteed to be 8 or 16 in most 64-bit platforms
@mgerhardy, PTAL and confirm this fixes your ASAN testing issue. Thanks!
@mgerhardy, PTAL and confirm this fixes your ASAN testing issue. Thanks!