aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/text/gles2.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-02-07 22:08:24 +0300
committerGitHub <noreply@github.com>2023-02-07 22:08:24 +0300
commit2d27fff796791bf164af8605f97eda16fcb0f724 (patch)
tree9e10e82e687f0dd08d7be58bd1d2ef47c5215ef6 /alacritty/src/renderer/text/gles2.rs
parent8b3f229c3d26b9736a53698e9593b8ae5db6c6dd (diff)
downloadr-alacritty-2d27fff796791bf164af8605f97eda16fcb0f724.tar.gz
r-alacritty-2d27fff796791bf164af8605f97eda16fcb0f724.tar.bz2
r-alacritty-2d27fff796791bf164af8605f97eda16fcb0f724.zip
Make gles2 renderer actually gles2
Fixes #6209.
Diffstat (limited to 'alacritty/src/renderer/text/gles2.rs')
-rw-r--r--alacritty/src/renderer/text/gles2.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/alacritty/src/renderer/text/gles2.rs b/alacritty/src/renderer/text/gles2.rs
index 2f537e5c..427a60e3 100644
--- a/alacritty/src/renderer/text/gles2.rs
+++ b/alacritty/src/renderer/text/gles2.rs
@@ -37,13 +37,17 @@ pub struct Gles2Renderer {
}
impl Gles2Renderer {
- pub fn new(allow_dsb: bool) -> Result<Self, Error> {
+ pub fn new(allow_dsb: bool, is_gles_context: bool) -> Result<Self, Error> {
info!("Using OpenGL ES 2.0 renderer");
let dual_source_blending = allow_dsb
&& (GlExtensions::contains("GL_EXT_blend_func_extended")
|| GlExtensions::contains("GL_ARB_blend_func_extended"));
+ if is_gles_context {
+ info!("Running on OpenGL ES context");
+ }
+
if dual_source_blending {
info!("Using dual source blending");
}
@@ -145,7 +149,7 @@ impl Gles2Renderer {
vao,
vbo,
ebo,
- atlas: vec![Atlas::new(ATLAS_SIZE)],
+ atlas: vec![Atlas::new(ATLAS_SIZE, is_gles_context)],
batch: Batch::new(),
current_atlas: 0,
active_tex: 0,