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 authored and hecrj committed Mar 20, 2024
1 parent 2b00e8b commit a613079
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 @@ -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
};
Expand Down

0 comments on commit a613079

Please sign in to comment.