mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +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,8 +4156,13 @@ static void vma_aligned_free(void* ptr)
|
||||
#endif
|
||||
|
||||
#ifndef VMA_SYSTEM_ALIGNED_FREE
|
||||
// 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
|
||||
#define VMA_MIN(v1, v2) (std::min((v1), (v2)))
|
||||
|
Loading…
Reference in New Issue
Block a user