aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-12-19 11:24:09 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-12-19 11:32:51 +0100
commit0b6418fabbeb0ec9cd326c5397969aceb06f1b41 (patch)
tree281ae16ba2a5f7a5555a6842b84e93abeac1d116 /src/window.rs
parent20a6e1ea6e6b08c2ed356eb21dd777016726a82b (diff)
downloadglutin-0b6418fabbeb0ec9cd326c5397969aceb06f1b41.tar.gz
glutin-0b6418fabbeb0ec9cd326c5397969aceb06f1b41.zip
Change PixelFormatRequirements
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
}