Fixed usage of VMA_FALLTHROUGH

This commit is contained in:
Adam Sawicki 2023-02-24 14:17:44 +01:00
parent 4c58c1fefe
commit dd09767ff6

View File

@ -13797,11 +13797,10 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto
vectorState.operation = StateExtensive::Operation::MoveBuffers; vectorState.operation = StateExtensive::Operation::MoveBuffers;
bufferPresent = false; bufferPresent = false;
otherPresent = false; otherPresent = false;
VMA_FALLTHROUGH; // Fallthrough
} }
else else
break; break;
VMA_FALLTHROUGH; // Fallthrough
} }
case StateExtensive::Operation::MoveBuffers: case StateExtensive::Operation::MoveBuffers:
{ {
@ -13823,11 +13822,10 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto
// No more buffers to move, check all others // No more buffers to move, check all others
vectorState.operation = StateExtensive::Operation::MoveAll; vectorState.operation = StateExtensive::Operation::MoveAll;
otherPresent = false; otherPresent = false;
VMA_FALLTHROUGH; // Fallthrough
} }
else else
break; break;
VMA_FALLTHROUGH; // Fallthrough
} }
case StateExtensive::Operation::MoveAll: case StateExtensive::Operation::MoveAll:
{ {