mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
When a command encoder is dropped, destroy its hal command buffer. (#3069)
Fixes #2965.
This commit is contained in:
@@ -4574,6 +4574,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
if let Some(cmdbuf) = cmdbuf {
|
||||
let device = &mut device_guard[cmdbuf.device_id.value];
|
||||
device.untrack::<G>(hub, &cmdbuf.trackers, &mut token);
|
||||
device.destroy_command_buffer(cmdbuf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user