swapchain: fix borked resize logic

This commit is contained in:
Victor Brekenfeld 2021-04-08 00:42:06 +02:00
parent fb30c830d7
commit 84439e5400
1 changed files with 1 additions and 4 deletions

View File

@ -86,9 +86,6 @@ impl<A: Allocator<B>, B: Buffer> Swapchain<A, B> {
self.width = width;
self.height = height;
for mut slot in &mut self.slots {
let _ = std::mem::replace(&mut slot, &mut Slot::default());
}
self.slots = Default::default();
}
}