From eddf0b4c8f2c50b7895ad26ee946401e563cdd32 Mon Sep 17 00:00:00 2001 From: Andy Leiserson Date: Mon, 12 Oct 2026 20:10:04 -0700 Subject: [PATCH] Fix a wasm `cfg` condition (#10577) --- wgpu-core/src/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index 4e19aa74d..76fc7064c 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -904,7 +904,7 @@ impl Surface { Err(WaitIdleError::Device(_)) => { // we can ignore device lost errors here, since we are just cleaning up } - Err(WaitIdleError::Timeout) if cfg!(target_arch = "wasm32") => { + Err(WaitIdleError::Timeout) if cfg!(target_family = "wasm") => { // On wasm, you cannot actually successfully wait for the surface. // However WebGL does not actually require you do this, so ignoring // the failure is totally fine. See https://github.com/gfx-rs/wgpu/issues/7363