Fix present synchronization (#9036)

This commit is contained in:
Inner Daemons authored and Connor Fitzgerald committed 2026-03-01 16:16:35 -05:00
1 parent 055f28a247
commit 163d2407a1
2 files changed
+4

No files matched your search

+3
View File
@@ -43,6 +43,9 @@ Bottom level categories:
## v28.0.1 (2025-03-01)
### General
- Fixed crash on nvidia cards when presenting from another thread. By @inner-daemons in [#9036](https://github.com/gfx-rs/wgpu/pull/9036).
### Vulkan
- Fixed crash on some Mali drivers on Android. By @beicause in [#8769](https://github.com/gfx-rs/wgpu/pull/8769).
+1
View File
@@ -302,6 +302,7 @@ impl Surface {
Some(resource::TextureInner::Surface { raw }) => {
let raw_surface = self.raw(device.backend()).unwrap();
let raw_queue = queue.raw();
let _fence_lock = device.fence.write();
unsafe { raw_queue.present(raw_surface, raw) }
}
_ => unreachable!(),