Skip to content

Commit

Permalink
Revert "Remove PreMultiplied alpha mode selection in `wgpu::window:…
Browse files Browse the repository at this point in the history
…:compositor`"

This reverts commit 33066bc.
  • Loading branch information
Koranir committed Feb 11, 2024
1 parent 891f29e commit 4a10a8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu/src/window/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,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
};
Expand Down

0 comments on commit 4a10a8f

Please sign in to comment.