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

Fixes #2965.
This commit is contained in:
Jim Blandy authored and GitHub committed 2022-10-06 01:06:55 -07:00
1 parent 261069d04f
commit c781971792
1 file changed
+1
+1
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);
}
}