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
This commit is contained in:
Wez Furlong committed 2025-05-17 09:36:33 -07:00
1 parent 8e35f94d7c
commit f54dd1b028
1 file changed
+1 -1
+1 -1
View File
@@ -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 {