diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | glow/src/window/compositor.rs | 7 |
2 files changed, 9 insertions, 3 deletions
@@ -4,11 +4,12 @@ # iced -[](https://github.com/hecrj/iced/actions) [][documentation] [](https://crates.io/crates/iced) [](https://github.com/hecrj/iced/blob/master/LICENSE) -[](https://iced.zulipchat.com) +[](https://crates.io/crates/iced) +[](https://github.com/hecrj/iced/actions) +[](https://discord.gg/3xZJ65GAhd) A cross-platform GUI library for Rust focused on simplicity and type-safety. Inspired by [Elm]. 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); |