mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-12-03 16:51:04 +00:00
Fixed a warning in BlockMetadata_TLSF::WriteAllocationInfoToJson
Fixes #67 - thanks @ttcvetkov
This commit is contained in:
parent
ffee0813e4
commit
da380f69bd
@ -5030,7 +5030,8 @@ void BlockMetadata_TLSF::WriteAllocationInfoToJson(JsonWriter& json) const
|
||||
}
|
||||
D3D12MA_ASSERT(i == 0);
|
||||
|
||||
PrintDetailedMap_Begin(json, GetSumFreeSize(), GetAllocationCount(), m_BlocksFreeCount + static_cast<bool>(m_NullBlock->size));
|
||||
PrintDetailedMap_Begin(json, GetSumFreeSize(), GetAllocationCount(), m_BlocksFreeCount +
|
||||
(m_NullBlock->size > 0 ? 1 : 0));
|
||||
for (; i < blockCount; ++i)
|
||||
{
|
||||
Block* block = blockList[i];
|
||||
|
Loading…
Reference in New Issue
Block a user