mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-06-02 18:07:48 +00:00
Merge pull request #97 from JustSid/master
Fixed incorrect for loop in ProcessDefragmetnations()
This commit is contained in:
commit
b98cba1cf3
1 changed files with 2 additions and 2 deletions
|
@ -13019,9 +13019,9 @@ uint32_t VmaBlockVector::ProcessDefragmentations(
|
||||||
|
|
||||||
const uint32_t moveCount = std::min(uint32_t(pCtx->defragmentationMoves.size()) - pCtx->defragmentationMovesProcessed, maxMoves);
|
const uint32_t moveCount = std::min(uint32_t(pCtx->defragmentationMoves.size()) - pCtx->defragmentationMovesProcessed, maxMoves);
|
||||||
|
|
||||||
for(uint32_t i = pCtx->defragmentationMovesProcessed; i < moveCount; ++ i)
|
for(uint32_t i = 0; i < moveCount; ++ i)
|
||||||
{
|
{
|
||||||
VmaDefragmentationMove& move = pCtx->defragmentationMoves[i];
|
VmaDefragmentationMove& move = pCtx->defragmentationMoves[pCtx->defragmentationMovesProcessed + i];
|
||||||
|
|
||||||
pMove->allocation = move.hAllocation;
|
pMove->allocation = move.hAllocation;
|
||||||
pMove->memory = move.pDstBlock->GetDeviceMemory();
|
pMove->memory = move.pDstBlock->GetDeviceMemory();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue