Merge pull request #1021 from akhilman/fix-glow-alpha-compositing
Fix window holes behind transparent objects
This commit is contained in:
commit
589f68df0f
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue