mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
parent
dd4f5e81ac
commit
1d8ba60f3e
@ -4667,8 +4667,6 @@ void Pool::ReleaseThis()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
|
||||||
|
|
||||||
D3D12MA_DELETE(m_Pimpl->GetAllocator()->GetAllocs(), this);
|
D3D12MA_DELETE(m_Pimpl->GetAllocator()->GetAllocs(), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6119,8 +6117,6 @@ void Allocation::ReleaseThis()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
|
||||||
|
|
||||||
SAFE_RELEASE(m_Resource);
|
SAFE_RELEASE(m_Resource);
|
||||||
|
|
||||||
switch(m_PackedData.GetType())
|
switch(m_PackedData.GetType())
|
||||||
@ -6279,8 +6275,6 @@ Allocator::~Allocator()
|
|||||||
|
|
||||||
void Allocator::ReleaseThis()
|
void Allocator::ReleaseThis()
|
||||||
{
|
{
|
||||||
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
|
||||||
|
|
||||||
// Copy is needed because otherwise we would call destructor and invalidate the structure with callbacks before using it to free memory.
|
// Copy is needed because otherwise we would call destructor and invalidate the structure with callbacks before using it to free memory.
|
||||||
const ALLOCATION_CALLBACKS allocationCallbacksCopy = m_Pimpl->GetAllocs();
|
const ALLOCATION_CALLBACKS allocationCallbacksCopy = m_Pimpl->GetAllocs();
|
||||||
D3D12MA_DELETE(allocationCallbacksCopy, this);
|
D3D12MA_DELETE(allocationCallbacksCopy, this);
|
||||||
@ -6534,8 +6528,6 @@ VirtualBlock::~VirtualBlock()
|
|||||||
|
|
||||||
void VirtualBlock::ReleaseThis()
|
void VirtualBlock::ReleaseThis()
|
||||||
{
|
{
|
||||||
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
|
||||||
|
|
||||||
// Copy is needed because otherwise we would call destructor and invalidate the structure with callbacks before using it to free memory.
|
// Copy is needed because otherwise we would call destructor and invalidate the structure with callbacks before using it to free memory.
|
||||||
const ALLOCATION_CALLBACKS allocationCallbacksCopy = m_Pimpl->m_AllocationCallbacks;
|
const ALLOCATION_CALLBACKS allocationCallbacksCopy = m_Pimpl->m_AllocationCallbacks;
|
||||||
D3D12MA_DELETE(allocationCallbacksCopy, this);
|
D3D12MA_DELETE(allocationCallbacksCopy, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user