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
|
#if VMA_DEBUG_GLOBAL_MUTEX
|
||||||
static VMA_MUTEX gDebugGlobalMutex;
|
static VMA_MUTEX gDebugGlobalMutex;
|
||||||
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK VmaMutexLock debugGlobalMutexLock(gDebugGlobalMutex);
|
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK VmaMutexLock debugGlobalMutexLock(gDebugGlobalMutex, true);
|
||||||
#else
|
#else
|
||||||
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK
|
#define VMA_DEBUG_GLOBAL_MUTEX_LOCK
|
||||||
#endif
|
#endif
|
||||||
@ -2857,6 +2857,7 @@ void VmaBlock::Init(
|
|||||||
|
|
||||||
void VmaBlock::Destroy(VmaAllocator allocator)
|
void VmaBlock::Destroy(VmaAllocator allocator)
|
||||||
{
|
{
|
||||||
|
VMA_ASSERT(IsEmpty());
|
||||||
VMA_ASSERT(m_hMemory != VK_NULL_HANDLE);
|
VMA_ASSERT(m_hMemory != VK_NULL_HANDLE);
|
||||||
if(m_pMappedData != VMA_NULL)
|
if(m_pMappedData != VMA_NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user