Skip to content

Commit

Permalink
Merge pull request #254 from MennoVink/master
Browse files Browse the repository at this point in the history
C4062 fix
  • Loading branch information
adam-sawicki-a committed Mar 28, 2022
2 parents 42be483 + 11cbcfc commit 228a1b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/vk_mem_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -5879,9 +5879,14 @@ class VmaMappingHysteresis
void PostMinorCounter()
{
if(m_MinorCounter < m_MajorCounter)
{
++m_MinorCounter;
}
else if(m_MajorCounter > 0)
--m_MajorCounter, --m_MinorCounter;
{
--m_MajorCounter;
--m_MinorCounter;
}
}
};

Expand Down Expand Up @@ -13841,6 +13846,9 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto
}
break;
}
case StateExtensive::Operation::Cleanup:
// Cleanup is handled below so that other operations may reuse the cleanup code. This case is here to prevent the unhandled enum value warning (C4062).
break;
}

if (vectorState.operation == StateExtensive::Operation::Cleanup)
Expand Down

0 comments on commit 228a1b6

Please sign in to comment.