Fixes in BlockMetadata_Linear::Validate

This commit is contained in:
Adam Sawicki 2022-03-24 15:19:09 +01:00
parent 10bff5ec74
commit 62b61790de

View File

@ -3815,7 +3815,7 @@ bool BlockMetadata_Linear::Validate() const
{
if (!IsVirtual())
{
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
}
sumUsedSize += suballoc.size;
@ -3857,7 +3857,7 @@ bool BlockMetadata_Linear::Validate() const
{
if (!IsVirtual())
{
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
}
sumUsedSize += suballoc.size;
@ -3891,7 +3891,7 @@ bool BlockMetadata_Linear::Validate() const
{
if (!IsVirtual())
{
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
}
sumUsedSize += suballoc.size;