Skip to content

Commit

Permalink
#2110 fix (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0246 authored Dec 20, 2022
1 parent 8a5dedf commit 31aa5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulkano/src/memory/allocator/suballocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 31aa5d8

Please # to comment.