Cast ptr to Device not Surface (#5640)

This commit is contained in:
Samson authored and GitHub committed 2024-04-30 11:39:56 -04:00
1 parent bdf30fa45a
commit 5fa537bfd9
1 file changed
+1 -1
+1 -1
View File
@@ -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>());
}
}