mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Cast ptr to Device not Surface (#5640)
This commit is contained in:
1 parent
bdf30fa45a
commit
5fa537bfd9
1 file changed
+1
-1
@@ -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>());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user