diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-22 19:52:02 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-06-27 20:27:17 +0530 |
commit | b74cea3a4698ca7e35a801b37b8b61479a46ede5 (patch) | |
tree | 4644030edaa4b041872676302271fb85c158c12c /components/script/dom/gpuqueue.rs | |
parent | 0afe412d632a14b54da78ffb25418bdb510233a4 (diff) | |
download | servo-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.rs | 2 |
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, }) |