rt(vk): fix double free in RawVulkanBuffer
This commit is contained in:
parent
f9fdb93c0c
commit
3d74f27d77
1 changed files with 0 additions and 3 deletions
|
@ -186,9 +186,6 @@ impl Drop for RawVulkanBuffer {
|
|||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
ManuallyDrop::drop(&mut self.buffer);
|
||||
if self.buffer.handle != vk::Buffer::null() {
|
||||
self.buffer.device.destroy_buffer(self.buffer.handle, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue