From 5fa537bfd97683683cdad793bb0fe34a63a75c40 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:39:56 +0200 Subject: [PATCH] Cast ptr to Device not Surface (#5640) --- wgpu-core/src/device/any_device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/any_device.rs b/wgpu-core/src/device/any_device.rs index 693155a753..9e459c1a94 100644 --- a/wgpu-core/src/device/any_device.rs +++ b/wgpu-core/src/device/any_device.rs @@ -34,7 +34,7 @@ impl AnyDevice { unsafe fn drop_glue(ptr: *mut ()) { // Drop the arc this instance is holding. unsafe { - _ = Arc::from_raw(ptr.cast::()); + _ = Arc::from_raw(ptr.cast::()); } }