diff options
author | Rolf Sievert <26115145+RolfSievert@users.noreply.github.com> | 2023-09-04 22:15:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 20:15:46 +0000 |
commit | 8eed17227a2d1541c54abdb8498d69ba25ef0df6 (patch) | |
tree | 2286cea275dcca3b76f6dd6624c118b3b59571fb /alacritty/src/window_context.rs | |
parent | 8d174429ee1e63e865a9203d7dfc4ce2cd25576d (diff) | |
download | r-alacritty-8eed17227a2d1541c54abdb8498d69ba25ef0df6.tar.gz r-alacritty-8eed17227a2d1541c54abdb8498d69ba25ef0df6.tar.bz2 r-alacritty-8eed17227a2d1541c54abdb8498d69ba25ef0df6.zip |
Add `prefer_egl` debug option
Some systems have rendering issues when using GLX rather than EGL. While this is
usually due to a driver bug, it is helpful to provide a workaround for this by
allowing people to prefer EGL over GLX.
This patch adds the new `debug.prefer_egl` option to provide this workaround.
Closes #7056.
Diffstat (limited to 'alacritty/src/window_context.rs')
-rw-r--r-- | alacritty/src/window_context.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/alacritty/src/window_context.rs b/alacritty/src/window_context.rs index 84ce4457..332bdcd9 100644 --- a/alacritty/src/window_context.rs +++ b/alacritty/src/window_context.rs @@ -92,8 +92,11 @@ impl WindowContext { #[cfg(not(windows))] let raw_window_handle = None; - let gl_display = - renderer::platform::create_gl_display(raw_display_handle, raw_window_handle)?; + let gl_display = renderer::platform::create_gl_display( + raw_display_handle, + raw_window_handle, + config.debug.prefer_egl, + )?; let gl_config = renderer::platform::pick_gl_config(&gl_display, raw_window_handle)?; #[cfg(not(windows))] |