diff --git a/wgpu/src/util/device.rs b/wgpu/src/util/device.rs index 7b6a8400cf..3820fd3864 100644 --- a/wgpu/src/util/device.rs +++ b/wgpu/src/util/device.rs @@ -52,10 +52,6 @@ impl DeviceExt for crate::Device { mapped_at_creation: true, }; - let mut map_context = crate::MapContext::new(padded_size); - - map_context.initial_range = 0..padded_size; - let buffer = self.create_buffer(&wgt_descriptor); { let mut slice = buffer.slice(..).get_mapped_range_mut();