mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
Cast ptr to Device not Surface (#5640)
This commit is contained in:
parent
bdf30fa45a
commit
5fa537bfd9
@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user