swapchain: fix borked resize logic
This commit is contained in:
parent
fb30c830d7
commit
84439e5400
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue