mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Fix present synchronization (#9036)
This commit is contained in:
1 parent
055f28a247
commit
163d2407a1
2 files changed
+4
No files matched your search
@@ -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).
|
||||
|
||||
|
||||
@@ -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!(),
|
||||
|
||||
Reference in new issue
Block a user