Cast ptr to Device not Surface (#5640)

This commit is contained in:
Samson 2024-04-30 17:39:56 +02:00 committed by GitHub
parent bdf30fa45a
commit 5fa537bfd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>());
}
}