mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-22 12:20:05 +00:00
Let VMA_SYSTEM_ALIGNED_FREE fall back to VMA_SYSTEM_FREE, if defined
This commit is contained in:
parent
59131844fe
commit
4157367212
@ -4156,7 +4156,12 @@ static void vma_aligned_free(void* ptr)
|
||||
#endif
|
||||
|
||||
#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
|
||||
|
||||
#ifndef VMA_MIN
|
||||
|
Loading…
Reference in New Issue
Block a user