mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-10 10:41:52 +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
|
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user