Fix present synchronization (#9036)

This commit is contained in:
Inner Daemons authored and GitHub committed 2026-03-01 14:38:45 -05:00
1 parent 7caf9fabc3
commit 78cd771dfd
2 files changed
+2

No files matched your search

+1
View File
@@ -161,6 +161,7 @@ depth_stencil: Some(wgpu::DepthStencilState::stencil(
#### General
- Fixed crash on nvidia cards when presenting from another thread. By @inner-daemons in [#9036](https://github.com/gfx-rs/wgpu/pull/9036).
- BREAKING: Migrated from the `maxInterStageShaderComponents` limit to `maxInterStageShaderVariables`, which changes validation in a way that should not affect most programs. This follows the latest changes of the WebGPU spec. By @ErichDonGubler in [#8652](https://github.com/gfx-rs/wgpu/pull/8652), [#8792](https://github.com/gfx-rs/wgpu/pull/8792).
- Tracing support has been restored. By @andyleiserson in [#8429](https://github.com/gfx-rs/wgpu/pull/8429).
- Pipelines using passthrough shaders now correctly require explicit pipeline layout. By @inner-daemons in #8881.
+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!(),