diff options
Diffstat (limited to '')
-rw-r--r-- | third_party/rust/wgpu-core/src/device/any_device.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/rust/wgpu-core/src/device/any_device.rs b/third_party/rust/wgpu-core/src/device/any_device.rs index 693155a753..9e459c1a94 100644 --- a/third_party/rust/wgpu-core/src/device/any_device.rs +++ b/third_party/rust/wgpu-core/src/device/any_device.rs @@ -34,7 +34,7 @@ impl AnyDevice { unsafe fn drop_glue<A: HalApi>(ptr: *mut ()) { // Drop the arc this instance is holding. unsafe { - _ = Arc::from_raw(ptr.cast::<A::Surface>()); + _ = Arc::from_raw(ptr.cast::<A::Device>()); } } |