Add support for sRGB attribute and fix creation on windows
This commit is contained in:
parent
41044c160a
commit
65f4809280
4 changed files with 41 additions and 1 deletions
|
|
@ -129,6 +129,12 @@ impl<'a> WindowBuilder<'a> {
|
|||
self
|
||||
}
|
||||
|
||||
/// Sets whether sRGB should be enabled on the window. `None` means "I don't care".
|
||||
pub fn with_srgb(mut self, srgb_enabled: Option<bool>) -> WindowBuilder<'a> {
|
||||
self.attribs.srgb = srgb_enabled;
|
||||
self
|
||||
}
|
||||
|
||||
/// Builds the window.
|
||||
///
|
||||
/// Error should be very rare and only occur in case of permission denied, incompatible system,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue