mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
When a command encoder is dropped, destroy its hal command buffer. (#3069)
Fixes #2965.
This commit is contained in:
1 parent
261069d04f
commit
c781971792
1 file changed
+1
@@ -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