diff options
Diffstat (limited to 'components/script/dom/gpubuffer.rs')
-rw-r--r-- | components/script/dom/gpubuffer.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/gpubuffer.rs b/components/script/dom/gpubuffer.rs index d90a37b559d..efcb08558b6 100644 --- a/components/script/dom/gpubuffer.rs +++ b/components/script/dom/gpubuffer.rs @@ -142,10 +142,7 @@ impl GPUBuffer { usage: wgt::BufferUsages::from_bits_retain(descriptor.usage), mapped_at_creation: descriptor.mappedAtCreation, }; - let id = device - .global() - .wgpu_id_hub() - .create_buffer_id(device.id().0.backend()); + let id = device.global().wgpu_id_hub().create_buffer_id(); device .channel() |