mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 14:51:30 +11:00
Merge pull request #495 from tomaka/fix-multisampling
Makes sure that the pixel format has the same multisampling settings as the requirements
This commit is contained in:
commit
717ea3d5ba
11
src/lib.rs
11
src/lib.rs
|
@ -398,8 +398,15 @@ impl<'a> BuilderAttribs<'a> {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.multisampling.is_some() && format.multisampling.is_none() {
|
if let Some(req_ms) = self.multisampling {
|
||||||
continue;
|
match format.multisampling {
|
||||||
|
Some(val) if val >= req_ms => (),
|
||||||
|
_ => continue
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if format.multisampling.is_some() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(srgb) = self.srgb {
|
if let Some(srgb) = self.srgb {
|
||||||
|
|
Loading…
Reference in a new issue