Skip to content

Commit

Permalink
Cast ptr to Device not Surface (#5640)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev authored Apr 30, 2024
1 parent bdf30fa commit 5fa537b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/device/any_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>());
}
}

Expand Down

0 comments on commit 5fa537b

Please sign in to comment.