rt(vk): fix double free in RawVulkanBuffer
This commit is contained in:
parent
44aa5fab7d
commit
923bc165b2
|
@ -186,9 +186,6 @@ impl Drop for RawVulkanBuffer {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
ManuallyDrop::drop(&mut self.buffer);
|
ManuallyDrop::drop(&mut self.buffer);
|
||||||
if self.buffer.handle != vk::Buffer::null() {
|
|
||||||
self.buffer.device.destroy_buffer(self.buffer.handle, None);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue