Change PixelFormatRequirements
This commit is contained in:
parent
20a6e1ea6e
commit
0b6418fabb
2 changed files with 68 additions and 16 deletions
|
|
@ -186,7 +186,7 @@ impl<'a> WindowBuilder<'a> {
|
|||
/// Sets whether sRGB should be enabled on the window. `None` means "I don't care".
|
||||
#[inline]
|
||||
pub fn with_srgb(mut self, srgb_enabled: Option<bool>) -> WindowBuilder<'a> {
|
||||
self.pf_reqs.srgb = srgb_enabled;
|
||||
self.pf_reqs.srgb = srgb_enabled.unwrap_or(false);
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue