Improve Antialiasing::sample_count signature

This commit is contained in:
Héctor Ramón Jiménez 2020-03-29 15:21:43 +02:00
parent 79fed3d695
commit 9e139e6ca7

View File

@ -45,7 +45,7 @@ pub enum Antialiasing {
}
impl Antialiasing {
pub(crate) fn sample_count(&self) -> u32 {
pub(crate) fn sample_count(self) -> u32 {
match self {
Antialiasing::MSAAx2 => 2,
Antialiasing::MSAAx4 => 4,