mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 14:21:31 +11:00
Makes sure that the pf has the same multisampling settings as the requirements
This commit is contained in:
parent
e6dca4f7d1
commit
3c889636ad
11
src/lib.rs
11
src/lib.rs
|
@ -398,8 +398,15 @@ impl<'a> BuilderAttribs<'a> {
|
|||
continue;
|
||||
}
|
||||
|
||||
if self.multisampling.is_some() && format.multisampling.is_none() {
|
||||
continue;
|
||||
if let Some(req_ms) = self.multisampling {
|
||||
match format.multisampling {
|
||||
Some(val) if val >= req_ms => (),
|
||||
_ => continue
|
||||
}
|
||||
} else {
|
||||
if format.multisampling.is_some() {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(srgb) = self.srgb {
|
||||
|
|
Loading…
Reference in a new issue