Simplify map call in iced_wgpu::triangle
This commit is contained in:
parent
b277625546
commit
b8ddd158da
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ fn multisample_state(
|
||||||
antialiasing: Option<Antialiasing>,
|
antialiasing: Option<Antialiasing>,
|
||||||
) -> wgpu::MultisampleState {
|
) -> wgpu::MultisampleState {
|
||||||
wgpu::MultisampleState {
|
wgpu::MultisampleState {
|
||||||
count: antialiasing.map(|a| a.sample_count()).unwrap_or(1),
|
count: antialiasing.map(Antialiasing::sample_count).unwrap_or(1),
|
||||||
mask: !0,
|
mask: !0,
|
||||||
alpha_to_coverage_enabled: false,
|
alpha_to_coverage_enabled: false,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue