Let VMA_SYSTEM_ALIGNED_FREE fall back to VMA_SYSTEM_FREE, if defined

This commit is contained in:
Frank Richter 2020-08-24 00:40:19 +02:00
parent 59131844fe
commit 4157367212

View File

@ -4156,7 +4156,12 @@ static void vma_aligned_free(void* ptr)
#endif #endif
#ifndef VMA_SYSTEM_ALIGNED_FREE #ifndef VMA_SYSTEM_ALIGNED_FREE
#define VMA_SYSTEM_ALIGNED_FREE(ptr) vma_aligned_free(ptr) // VMA_SYSTEM_FREE is the old name, but might have been defined by the user
#if defined(VMA_SYSTEM_FREE)
#define VMA_SYSTEM_ALIGNED_FREE(ptr) VMA_SYSTEM_FREE(ptr)
#else
#define VMA_SYSTEM_ALIGNED_FREE(ptr) vma_aligned_free(ptr)
#endif
#endif #endif
#ifndef VMA_MIN #ifndef VMA_MIN