mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
Fix AnyDevice drop implementation dropping the wrong thing (#6052)
# Conflicts: # CHANGELOG.md
This commit is contained in:
parent
e3b5c1a33f
commit
735ecd035e
@ -44,6 +44,7 @@ Bottom level categories:
|
||||
#### General
|
||||
|
||||
- Fix function for checking bind compatibility to error instead of panic. By @sagudev [#6012](https://github.com/gfx-rs/wgpu/pull/6012)
|
||||
- Fix crash when dropping the surface after the device. By @wumpf in [#6052](https://github.com/gfx-rs/wgpu/pull/6052)
|
||||
|
||||
## 22.0.0 (2024-07-17)
|
||||
|
||||
|
@ -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::Device>());
|
||||
_ = Arc::from_raw(ptr.cast::<Device<A>>());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user