summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Daniel Yoon <101683475+Koranir@users.noreply.github.com>2024-02-11 15:27:36 +1100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-20 16:46:13 +0100
commita6130790832c1e30d138ebebafce7065f957cc96 (patch)
tree2e814e75b45bd30cbb798194be1c58fb3c5091ff /wgpu
parent2b00e8b1457b0ccbafe12db3dbd6431c2c72f275 (diff)
downloadiced-a6130790832c1e30d138ebebafce7065f957cc96.tar.gz
iced-a6130790832c1e30d138ebebafce7065f957cc96.tar.bz2
iced-a6130790832c1e30d138ebebafce7065f957cc96.zip
Revert "Remove `PreMultiplied` alpha mode selection in `wgpu::window::compositor`"
This reverts commit 33066bca1af6c67e5188c0481403f28afabcbe1f.
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/window/compositor.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs
index 328ad781..fa6b9373 100644
--- a/wgpu/src/window/compositor.rs
+++ b/wgpu/src/window/compositor.rs
@@ -92,6 +92,10 @@ impl Compositor {
.contains(&wgpu::CompositeAlphaMode::PostMultiplied)
{
wgpu::CompositeAlphaMode::PostMultiplied
+ } else if alpha_modes
+ .contains(&wgpu::CompositeAlphaMode::PreMultiplied)
+ {
+ wgpu::CompositeAlphaMode::PreMultiplied
} else {
wgpu::CompositeAlphaMode::Auto
};