From dd09767ff6059d0acd664f6b4407d71cef3c5014 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Fri, 24 Feb 2023 14:17:44 +0100 Subject: [PATCH] Fixed usage of VMA_FALLTHROUGH --- include/vk_mem_alloc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 8d83da0..77a603f 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -13797,11 +13797,10 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto vectorState.operation = StateExtensive::Operation::MoveBuffers; bufferPresent = false; otherPresent = false; - - VMA_FALLTHROUGH; // Fallthrough } else break; + VMA_FALLTHROUGH; // Fallthrough } case StateExtensive::Operation::MoveBuffers: { @@ -13823,11 +13822,10 @@ bool VmaDefragmentationContext_T::ComputeDefragmentation_Extensive(VmaBlockVecto // No more buffers to move, check all others vectorState.operation = StateExtensive::Operation::MoveAll; otherPresent = false; - - VMA_FALLTHROUGH; // Fallthrough } else break; + VMA_FALLTHROUGH; // Fallthrough } case StateExtensive::Operation::MoveAll: {