mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
synced 2024-11-22 12:20:05 +00:00
Fix std::min in VmaBlockVector::ProcessDefragmentations
Fixes #151 - thanks @rextimmy
This commit is contained in:
parent
1420873213
commit
0e2b4b2045
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user