From f6a71c93680daf27003bc0dd6c606b4baf6f6000 Mon Sep 17 00:00:00 2001 From: marc0246 <40955683+marc0246@users.noreply.github.com> Date: Tue, 20 Dec 2022 18:49:54 +0100 Subject: [PATCH] #2110 fix (#2111) --- vulkano/src/memory/allocator/suballocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/memory/allocator/suballocator.rs b/vulkano/src/memory/allocator/suballocator.rs index 73aa125b50..5188381d67 100644 --- a/vulkano/src/memory/allocator/suballocator.rs +++ b/vulkano/src/memory/allocator/suballocator.rs @@ -467,7 +467,7 @@ impl MemoryAlloc { pub fn shift(&mut self, amount: DeviceSize) { assert!(amount <= self.size); - self.offset += amount; + unsafe { self.set_offset(self.offset + amount) }; self.size -= amount; }