mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-05 12:20:07 +00:00
Two small fixes.
This commit is contained in:
parent
f1e93549c9
commit
0c1c663062
Binary file not shown.
@ -1106,7 +1106,7 @@ private:
|
||||
|
||||
#if VMA_DEBUG_GLOBAL_MUTEX
|
||||
static VMA_MUTEX gDebugGlobalMutex;
|
||||
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK VmaMutexLock debugGlobalMutexLock(gDebugGlobalMutex);
|
||||
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK VmaMutexLock debugGlobalMutexLock(gDebugGlobalMutex, true);
|
||||
#else
|
||||
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK
|
||||
#endif
|
||||
@ -2857,6 +2857,7 @@ void VmaBlock::Init(
|
||||
|
||||
void VmaBlock::Destroy(VmaAllocator allocator)
|
||||
{
|
||||
VMA_ASSERT(IsEmpty());
|
||||
VMA_ASSERT(m_hMemory != VK_NULL_HANDLE);
|
||||
if(m_pMappedData != VMA_NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user