aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuqueue.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-06-22 19:52:02 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-06-27 20:27:17 +0530
commitb74cea3a4698ca7e35a801b37b8b61479a46ede5 (patch)
tree4644030edaa4b041872676302271fb85c158c12c /components/script/dom/gpuqueue.rs
parent0afe412d632a14b54da78ffb25418bdb510233a4 (diff)
downloadservo-b74cea3a4698ca7e35a801b37b8b61479a46ede5.tar.gz
servo-b74cea3a4698ca7e35a801b37b8b61479a46ede5.zip
Implement GPUBuffer.mapAsync and update wgpu-core
Diffstat (limited to 'components/script/dom/gpuqueue.rs')
-rw-r--r--components/script/dom/gpuqueue.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/gpuqueue.rs b/components/script/dom/gpuqueue.rs
index 5b533a8d32c..fa79dc6fd44 100644
--- a/components/script/dom/gpuqueue.rs
+++ b/components/script/dom/gpuqueue.rs
@@ -51,7 +51,7 @@ impl GPUQueueMethods for GPUQueue {
/// https://gpuweb.github.io/gpuweb/#dom-gpuqueue-submit
fn Submit(&self, command_buffers: Vec<DomRoot<GPUCommandBuffer>>) {
let valid = command_buffers.iter().all(|cb| {
- cb.buffers().iter().all(|b| match *b.state() {
+ cb.buffers().iter().all(|b| match b.state() {
GPUBufferState::Unmapped => true,
_ => false,
})