diff --git a/config/lib/vma/vma.cpp b/config/lib/vma/vma.cpp index 889407c5c4289ccbba5be817b824acb13844dc57..d7c184dc79041c895e28c973d6f65241ff01970c 100644 --- a/config/lib/vma/vma.cpp +++ b/config/lib/vma/vma.cpp @@ -14,9 +14,13 @@ public: }; #define VMA_MUTEX VmaMutex -#endif +// TODO: This is not actually a valid way to do aligned allocations! +#define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (malloc(size)) +#else #define VMA_SYSTEM_ALIGNED_MALLOC(size, alignment) (aligned_alloc((alignment), (size))) +#endif + #define VMA_SYSTEM_FREE(ptr) free(ptr) #endif