From f54dd1b0287a9394e145eeeb50bcf0eb79deacfc Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 17 May 2025 09:36:15 -0700 Subject: [PATCH] macos: don't try swrast fallback for mesa We're not using; we only use either Metal via WebGpu (and thus don't ever get into the egl code), or Egl via the native opengl implementation. So we can bail out of the loop with the swrast fallback like we do on windows. closes: https://github.com/wezterm/wezterm/issues/6819 --- window/src/egl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/egl.rs b/window/src/egl.rs index a353ac1a9..256b31af9 100644 --- a/window/src/egl.rs +++ b/window/src/egl.rs @@ -469,7 +469,7 @@ impl GlState { // with the mesa environment set, and if we did, it would just // cause us to try software mode instead of the native opengl // drivers we'd pick up from the WGL fallback. - if cfg!(windows) { + if cfg!(windows) || cfg!(target_os = "macos") { break; } if prefer_swrast { -- 2.51.2