mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Fix AnyDevice drop implementation dropping the wrong thing (#6052)
This commit is contained in:
parent
03f6d24ea6
commit
d3c38a4fd0
@ -55,6 +55,7 @@ Bottom level categories:
|
|||||||
- Print requested and supported usages on `UnsupportedUsage` error. By @VladasZ in [#6007](https://github.com/gfx-rs/wgpu/pull/6007)
|
- Print requested and supported usages on `UnsupportedUsage` error. By @VladasZ in [#6007](https://github.com/gfx-rs/wgpu/pull/6007)
|
||||||
- Fix function for checking bind compatibility to error instead of panic. By @sagudev [#6012](https://github.com/gfx-rs/wgpu/pull/6012)
|
- Fix function for checking bind compatibility to error instead of panic. By @sagudev [#6012](https://github.com/gfx-rs/wgpu/pull/6012)
|
||||||
- Deduplicate bind group layouts that are created from pipelines with "auto" layouts. By @teoxoy [#6049](https://github.com/gfx-rs/wgpu/pull/6049)
|
- Deduplicate bind group layouts that are created from pipelines with "auto" layouts. By @teoxoy [#6049](https://github.com/gfx-rs/wgpu/pull/6049)
|
||||||
|
- Fix crash when dropping the surface after the device. By @wumpf in [#6052](https://github.com/gfx-rs/wgpu/pull/6052)
|
||||||
|
|
||||||
### Dependency Updates
|
### Dependency Updates
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ impl AnyDevice {
|
|||||||
unsafe fn drop_glue<A: HalApi>(ptr: *mut ()) {
|
unsafe fn drop_glue<A: HalApi>(ptr: *mut ()) {
|
||||||
// Drop the arc this instance is holding.
|
// Drop the arc this instance is holding.
|
||||||
unsafe {
|
unsafe {
|
||||||
_ = Arc::from_raw(ptr.cast::<A::Device>());
|
_ = Arc::from_raw(ptr.cast::<Device<A>>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user