1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00
wezterm/window/src
Wez Furlong 4d71a7913a macOS: bundle and use MetalANGLE to enable Metal rendering
This commit adjusts the window layer to have it try to load EGL
implementations on macOS.  This is important as the system
provided OpenGL implementation is deprecated and I wanted to
have a path forward for when it is finally removed.

If EGL fails to initialize, we fall back to the CGL/OpenGL
implementation that we used previously.

I've included binaries built for 64-bit intel from the MetalANGLE
project; here's how I built them:

```
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1
git clone https://github.com/kakashidinho/metalangle --depth 1
cd metalangle
PATH=$PWD/../depot_tools:$PATH python scripts/bootstrap.py
PATH=$PWD/../depot_tools:$PATH gclient sync
PATH=$PWD/../depot_tools:$PATH gn --args="is_debug=false angle_enable_metal=true angle_enable_vulkan=false angle_enable_gl=false angle_build_all=false" gen out/Release
PATH=$PWD/../depot_tools:$PATH autoninja -C out/Release
```

Those steps are a little too long to want to put them directly
into the wezterm CI.

It is important for metalangle to be >= 8230df39a5
in order for scaling to be handled correctly when dragging windows
between monitors.

refs: https://github.com/kakashidinho/metalangle/issues/34
2020-10-17 09:34:01 -07:00
..
bitmaps window: linux: set window icon 2020-05-02 12:07:34 -07:00
os macOS: bundle and use MetalANGLE to enable Metal rendering 2020-10-17 09:34:01 -07:00
color.rs windows: fix compilation for 32-bit target 2020-01-17 10:12:25 -08:00
connection.rs x11: remove Rc cycle between XConnection, Window, bitmaps 2020-07-13 09:00:00 -07:00
egl.rs macOS: bundle and use MetalANGLE to enable Metal rendering 2020-10-17 09:34:01 -07:00
input.rs Windows: improve ALT and dead key handling 2020-10-14 20:02:23 -07:00
lib.rs macOS: bundle and use MetalANGLE to enable Metal rendering 2020-10-17 09:34:01 -07:00
spawn.rs fix clipboard on x11 2020-10-09 11:07:18 -07:00
timerlist.rs window: fix build and clipboard on Windows 2019-11-29 12:32:30 -08:00