mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Fix argument order for aligned_alloc on mac.
I pasted this from the _aligned_malloc() branch, and _aligned_malloc() apparently has the argments swapped compared to aligned_alloc() :/ Bug: chromium:1098741 Change-Id: Iddd92a7beb9e75ddc63b96f757457ec4258fd1ca
This commit is contained in:
parent
1268da7b97
commit
5ef3d923d5
1 changed files with 1 additions and 1 deletions
|
@ -3959,7 +3959,7 @@ void *vma_aligned_alloc(size_t alignment, size_t size)
|
||||||
{
|
{
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
if (__builtin_available(macOS 10.15, iOS 13, *))
|
if (__builtin_available(macOS 10.15, iOS 13, *))
|
||||||
return aligned_alloc(size, alignment);
|
return aligned_alloc(alignment, size);
|
||||||
#endif
|
#endif
|
||||||
// alignment must be >= sizeof(void*)
|
// alignment must be >= sizeof(void*)
|
||||||
if(alignment < sizeof(void*))
|
if(alignment < sizeof(void*))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue