Makes sure that the pf has the same multisampling settings as the requirements

This commit is contained in:
Pierre Krieger 2015-06-21 13:07:24 +02:00
parent e6dca4f7d1
commit 3c889636ad

View file

@ -398,9 +398,16 @@ impl<'a> BuilderAttribs<'a> {
continue; continue;
} }
if self.multisampling.is_some() && format.multisampling.is_none() { if let Some(req_ms) = self.multisampling {
match format.multisampling {
Some(val) if val >= req_ms => (),
_ => continue
}
} else {
if format.multisampling.is_some() {
continue; continue;
} }
}
if let Some(srgb) = self.srgb { if let Some(srgb) = self.srgb {
if srgb != format.srgb { if srgb != format.srgb {