Skip to content

Commit 62b6179

Browse files
Fixes in BlockMetadata_Linear::Validate
1 parent 10bff5e commit 62b6179

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/D3D12MemAlloc.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ bool BlockMetadata_Linear::Validate() const
38153815
{
38163816
if (!IsVirtual())
38173817
{
3818-
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
3818+
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
38193819
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
38203820
}
38213821
sumUsedSize += suballoc.size;
@@ -3857,7 +3857,7 @@ bool BlockMetadata_Linear::Validate() const
38573857
{
38583858
if (!IsVirtual())
38593859
{
3860-
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
3860+
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
38613861
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
38623862
}
38633863
sumUsedSize += suballoc.size;
@@ -3891,7 +3891,7 @@ bool BlockMetadata_Linear::Validate() const
38913891
{
38923892
if (!IsVirtual())
38933893
{
3894-
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
3894+
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
38953895
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
38963896
}
38973897
sumUsedSize += suballoc.size;

0 commit comments

Comments
 (0)