aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpubuffer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpubuffer.rs')
-rw-r--r--components/script/dom/gpubuffer.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs
index 415184eabfd..643fbfc98c7 100644
--- a/components/script/dom/gpubuffer.rs
+++ b/components/script/dom/gpubuffer.rs
@@ -179,10 +179,16 @@ impl GPUBufferMethods for GPUBuffer {
},
_ => {},
};
- self.channel
+ if let Err(e) = self
+ .channel
.0
.send(WebGPURequest::DestroyBuffer(self.buffer.0))
- .unwrap();
+ {
+ warn!(
+ "Failed to send WebGPURequest::DestroyBuffer({:?}) ({})",
+ self.buffer.0, e
+ );
+ };
*self.state.borrow_mut() = GPUBufferState::Destroyed;
}