aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/text
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/renderer/text')
-rw-r--r--alacritty/src/renderer/text/gles2.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty/src/renderer/text/gles2.rs b/alacritty/src/renderer/text/gles2.rs
index 29a80e98..2f537e5c 100644
--- a/alacritty/src/renderer/text/gles2.rs
+++ b/alacritty/src/renderer/text/gles2.rs
@@ -37,11 +37,12 @@ pub struct Gles2Renderer {
}
impl Gles2Renderer {
- pub fn new() -> Result<Self, Error> {
+ pub fn new(allow_dsb: bool) -> Result<Self, Error> {
info!("Using OpenGL ES 2.0 renderer");
- let dual_source_blending = GlExtensions::contains("GL_EXT_blend_func_extended")
- || GlExtensions::contains("GL_ARB_blend_func_extended");
+ let dual_source_blending = allow_dsb
+ && (GlExtensions::contains("GL_EXT_blend_func_extended")
+ || GlExtensions::contains("GL_ARB_blend_func_extended"));
if dual_source_blending {
info!("Using dual source blending");