From 7e63caa879c905ccc00b0c363ef7b0fa04959440 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Thu, 6 Apr 2023 11:25:09 +0200 Subject: [PATCH] Fix in VmaDefragmentationContext_T::CounterStatus See #327. Code by @medranSolus. --- include/vk_mem_alloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 2ef9cd9..9b7aa62 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -13371,6 +13371,8 @@ VmaDefragmentationContext_T::CounterStatus VmaDefragmentationContext_T::CheckCou else return CounterStatus::End; } + else + m_IgnoredAllocs = 0; return CounterStatus::Pass; }