diff options
author | 2021-09-04 14:20:03 +0700 | |
---|---|---|
committer | 2021-09-04 14:20:03 +0700 | |
commit | 589f68df0f647d93f2b9dd7bf29cfacb0201351c (patch) | |
tree | 6083321be9862533522b2366981c9f7815ceabbd | |
parent | 7ebdbec8e7a2932e085ecd7fa36acc5bc8740cd7 (diff) | |
parent | 666f676d7c3cb83f51a004da7ef62f82b0365b1f (diff) | |
download | iced-589f68df0f647d93f2b9dd7bf29cfacb0201351c.tar.gz iced-589f68df0f647d93f2b9dd7bf29cfacb0201351c.tar.bz2 iced-589f68df0f647d93f2b9dd7bf29cfacb0201351c.zip |
Merge pull request #1021 from akhilman/fix-glow-alpha-compositing
Fix window holes behind transparent objects
-rw-r--r-- | glow/src/window/compositor.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/glow/src/window/compositor.rs b/glow/src/window/compositor.rs index 1fb671ad..b8157f78 100644 --- a/glow/src/window/compositor.rs +++ b/glow/src/window/compositor.rs @@ -26,7 +26,12 @@ impl iced_graphics::window::GLCompositor for Compositor { // Enable alpha blending gl.enable(glow::BLEND); - gl.blend_func(glow::SRC_ALPHA, glow::ONE_MINUS_SRC_ALPHA); + gl.blend_func_separate( + glow::SRC_ALPHA, + glow::ONE_MINUS_SRC_ALPHA, + glow::ONE, + glow::ONE_MINUS_SRC_ALPHA, + ); // Disable multisampling by default gl.disable(glow::MULTISAMPLE); |