File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments