diff options
Diffstat (limited to 'glow')
-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); |