mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Change PixelFormatRequirements
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user