Fix a wasm cfg condition (#10577)

This commit is contained in:
Andy Leiserson authored and GitHub committed 2026-10-13 03:10:04 +00:00
1 parent 889eea9505
commit eddf0b4c8f
1 file changed
+1 -1
+1 -1
View File
@@ -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