aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/config/debug.rs
diff options
context:
space:
mode:
authorRolf Sievert <26115145+RolfSievert@users.noreply.github.com>2023-09-04 22:15:46 +0200
committerGitHub <noreply@github.com>2023-09-04 20:15:46 +0000
commit8eed17227a2d1541c54abdb8498d69ba25ef0df6 (patch)
tree2286cea275dcca3b76f6dd6624c118b3b59571fb /alacritty/src/config/debug.rs
parent8d174429ee1e63e865a9203d7dfc4ce2cd25576d (diff)
downloadr-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/config/debug.rs')
-rw-r--r--alacritty/src/config/debug.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/alacritty/src/config/debug.rs b/alacritty/src/config/debug.rs
index fe0c78f1..a8be77d9 100644
--- a/alacritty/src/config/debug.rs
+++ b/alacritty/src/config/debug.rs
@@ -23,6 +23,9 @@ pub struct Debug {
/// The renderer alacritty should be using.
pub renderer: Option<RendererPreference>,
+ /// Use EGL as display API if the current platform allows it.
+ pub prefer_egl: bool,
+
/// Record ref test.
#[config(skip)]
pub ref_test: bool,
@@ -38,6 +41,7 @@ impl Default for Debug {
highlight_damage: Default::default(),
ref_test: Default::default(),
renderer: Default::default(),
+ prefer_egl: Default::default(),
}
}
}