Fix std::min in VmaBlockVector::ProcessDefragmentations

Fixes #151 - thanks @rextimmy
This commit is contained in:
Adam Sawicki 2020-09-30 16:07:51 +02:00
parent 1420873213
commit 0e2b4b2045

View File

@ -13776,7 +13776,7 @@ uint32_t VmaBlockVector::ProcessDefragmentations(
{
VmaMutexLockWrite lock(m_Mutex, m_hAllocator->m_UseMutex);
const uint32_t moveCount = std::min(uint32_t(pCtx->defragmentationMoves.size()) - pCtx->defragmentationMovesProcessed, maxMoves);
const uint32_t moveCount = VMA_MIN(uint32_t(pCtx->defragmentationMoves.size()) - pCtx->defragmentationMovesProcessed, maxMoves);
for(uint32_t i = 0; i < moveCount; ++ i)
{