remove tracing from deferred texture view and bind group destruction

we already trace texture view and bind group drop in the corresponding `Global` methods so we might end up with double drop actions
This commit is contained in:
teoxoy 2024-06-20 17:43:43 +02:00 committed by Teodor Tanasoaia
parent 812a562331
commit fd52ec8997

View File

@ -346,10 +346,7 @@ impl<A: HalApi> Device<A> {
};
resource_log!("Destroy raw TextureView (destroyed) {:?}", view.label());
#[cfg(feature = "trace")]
if let Some(t) = self.trace.lock().as_mut() {
t.add(trace::Action::DestroyTextureView(view.info.id()));
}
unsafe {
use hal::Device;
self.raw().destroy_texture_view(raw_view);
@ -365,10 +362,7 @@ impl<A: HalApi> Device<A> {
};
resource_log!("Destroy raw BindGroup (destroyed) {:?}", bind_group.label());
#[cfg(feature = "trace")]
if let Some(t) = self.trace.lock().as_mut() {
t.add(trace::Action::DestroyBindGroup(bind_group.info.id()));
}
unsafe {
use hal::Device;
self.raw().destroy_bind_group(raw_bind_group);