mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
Merge pull request #69 from apache-hb/master
Resolve -Wtautological-undefined-compare when building with clang
This commit is contained in:
commit
ffee0813e4
@ -9312,11 +9312,6 @@ void Allocation::SetName(LPCWSTR Name)
|
||||
|
||||
void Allocation::ReleaseThis()
|
||||
{
|
||||
if (this == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
SAFE_RELEASE(m_Resource);
|
||||
|
||||
switch (m_PackedData.GetType())
|
||||
@ -9461,11 +9456,6 @@ void DefragmentationContext::GetStats(DEFRAGMENTATION_STATS* pStats)
|
||||
|
||||
void DefragmentationContext::ReleaseThis()
|
||||
{
|
||||
if (this == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
D3D12MA_DELETE(m_Pimpl->GetAllocs(), this);
|
||||
}
|
||||
|
||||
@ -9526,11 +9516,6 @@ HRESULT Pool::BeginDefragmentation(const DEFRAGMENTATION_DESC* pDesc, Defragment
|
||||
|
||||
void Pool::ReleaseThis()
|
||||
{
|
||||
if (this == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
D3D12MA_DELETE(m_Pimpl->GetAllocator()->GetAllocs(), this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user