aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-12-20 10:58:28 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-12-20 10:58:28 +0100
commit1f5f997a68ec411fc3409a35f2c5e118811f3cd0 (patch)
treea5001d48c8d54373851f87b56d99ac7dc662117f /src/window.rs
parent87f0edea7ba872720152b5da296f0bd052d4c954 (diff)
parent61bca52217471eca4c4aff1dd84b980966be4bfc (diff)
downloadglutin-1f5f997a68ec411fc3409a35f2c5e118811f3cd0.tar.gz
glutin-1f5f997a68ec411fc3409a35f2c5e118811f3cd0.zip
Merge pull request #677 from tomaka/pf
No longer manually enumerate pixel formats
Diffstat (limited to 'src/window.rs')
-rw-r--r--src/window.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.rs b/src/window.rs
index f2d6580..f672ed5 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -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
}