When a command encoder is dropped, destroy its hal command buffer. (#3069)

Fixes #2965.
This commit is contained in:
Jim Blandy
2022-10-06 01:06:55 -07:00
committed by GitHub
parent 261069d04f
commit c781971792

View File

@@ -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);
}
}