Skip to content

Commit

Permalink
chore: fix label shadow warning for new_alpha_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Oct 9, 2022
1 parent ee726ac commit a81d7d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5128,7 +5128,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
.composite_alpha_modes
.contains(&config.composite_alpha_mode)
{
let new_alpha_mode = 'b: loop {
let new_alpha_mode = 'alpha: loop {
// Automatic alpha mode checks.
let fallbacks = match config.composite_alpha_mode {
wgt::CompositeAlphaMode::Auto => &[
Expand All @@ -5145,7 +5145,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {

for &fallback in fallbacks {
if caps.composite_alpha_modes.contains(&fallback) {
break 'b fallback;
break 'alpha fallback;
}
}

Expand Down

0 comments on commit a81d7d4

Please sign in to comment.