mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
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:
parent
812a562331
commit
fd52ec8997
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user