Skip to content

Commit 5fa537b

Browse files
authored
Cast ptr to Device not Surface (#5640)
1 parent bdf30fa commit 5fa537b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/device/any_device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl AnyDevice {
3434
unsafe fn drop_glue<A: HalApi>(ptr: *mut ()) {
3535
// Drop the arc this instance is holding.
3636
unsafe {
37-
_ = Arc::from_raw(ptr.cast::<A::Surface>());
37+
_ = Arc::from_raw(ptr.cast::<A::Device>());
3838
}
3939
}
4040

0 commit comments

Comments
 (0)