Use built-in OpenGL multisampling in iced_glow

This commit is contained in:
Héctor Ramón Jiménez 2020-05-22 19:15:39 +02:00
parent 6f71a8e3d5
commit 1dd79c4697
6 changed files with 61 additions and 210 deletions

View file

@ -170,9 +170,9 @@ impl Pipeline {
],
}],
},
sample_count: antialiasing
.map(|a| a.sample_count())
.unwrap_or(1),
sample_count: u32::from(
antialiasing.map(|a| a.sample_count()).unwrap_or(1),
),
sample_mask: !0,
alpha_to_coverage_enabled: false,
});