@@ -9316,28 +9316,28 @@ void VmaBlockMetadata_TLSF::Alloc(
9316
9316
RemoveFreeBlock(currentBlock);
9317
9317
9318
9318
VkDeviceSize debugMargin = GetDebugMargin();
9319
- VkDeviceSize misssingAlignment = offset - currentBlock->offset;
9319
+ VkDeviceSize missingAlignment = offset - currentBlock->offset;
9320
9320
9321
9321
// Append missing alignment to prev block or create new one
9322
- if (misssingAlignment )
9322
+ if (missingAlignment )
9323
9323
{
9324
9324
Block* prevBlock = currentBlock->prevPhysical;
9325
9325
VMA_ASSERT(prevBlock != VMA_NULL && "There should be no missing alignment at offset 0!");
9326
9326
9327
9327
if (prevBlock->IsFree() && prevBlock->size != debugMargin)
9328
9328
{
9329
9329
uint32_t oldList = GetListIndex(prevBlock->size);
9330
- prevBlock->size += misssingAlignment ;
9330
+ prevBlock->size += missingAlignment ;
9331
9331
// Check if new size crosses list bucket
9332
9332
if (oldList != GetListIndex(prevBlock->size))
9333
9333
{
9334
- prevBlock->size -= misssingAlignment ;
9334
+ prevBlock->size -= missingAlignment ;
9335
9335
RemoveFreeBlock(prevBlock);
9336
- prevBlock->size += misssingAlignment ;
9336
+ prevBlock->size += missingAlignment ;
9337
9337
InsertFreeBlock(prevBlock);
9338
9338
}
9339
9339
else
9340
- m_BlocksFreeSize += misssingAlignment ;
9340
+ m_BlocksFreeSize += missingAlignment ;
9341
9341
}
9342
9342
else
9343
9343
{
@@ -9346,15 +9346,15 @@ void VmaBlockMetadata_TLSF::Alloc(
9346
9346
prevBlock->nextPhysical = newBlock;
9347
9347
newBlock->prevPhysical = prevBlock;
9348
9348
newBlock->nextPhysical = currentBlock;
9349
- newBlock->size = misssingAlignment ;
9349
+ newBlock->size = missingAlignment ;
9350
9350
newBlock->offset = currentBlock->offset;
9351
9351
newBlock->MarkTaken();
9352
9352
9353
9353
InsertFreeBlock(newBlock);
9354
9354
}
9355
9355
9356
- currentBlock->size -= misssingAlignment ;
9357
- currentBlock->offset += misssingAlignment ;
9356
+ currentBlock->size -= missingAlignment ;
9357
+ currentBlock->offset += missingAlignment ;
9358
9358
}
9359
9359
9360
9360
VkDeviceSize size = request.size + debugMargin;
0 commit comments