Fix Android crash by setting waitAll to true in vkWaitForFences (#8769)

This commit is contained in:
Luo Zhihao authored and GitHub committed 2025-12-29 00:29:21 -05:00
1 parent 81542eadc3
commit 4b3bf0740a
1 file changed
+2 -1
+2 -1
View File
@@ -468,9 +468,10 @@ impl Swapchain for NativeSwapchain {
// latency, depending on how the platform implements waiting within
// acquire.
unsafe {
// The `wait_all` argument must be `true` to avoid crash on some Android devices. See https://github.com/gfx-rs/wgpu/pull/8769
self.device
.raw
.wait_for_fences(&[self.fence], false, timeout_ns)
.wait_for_fences(&[self.fence], true, timeout_ns)
.map_err(map_host_device_oom_and_lost_err)?;
self.device