Change PixelFormatRequirements

This commit is contained in:
Pierre Krieger 2015-12-19 11:24:09 +01:00
parent 20a6e1ea6e
commit 0b6418fabb
2 changed files with 68 additions and 16 deletions

View file

@ -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
}