mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Merge pull request #590 from tomaka/glx-non-conformant
No longer filter out non-conformant formats
This commit is contained in:
commit
8092fd6409
|
@ -384,14 +384,15 @@ unsafe fn enumerate_configs(glx: &ffi::glx::Glx, xlib: &ffi::Xlib, display: *mut
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: add a flag to PixelFormat for non-conformant configs
|
||||||
let caveat = get_attrib(ffi::glx::CONFIG_CAVEAT as libc::c_int, config);
|
let caveat = get_attrib(ffi::glx::CONFIG_CAVEAT as libc::c_int, config);
|
||||||
if caveat == ffi::glx::NON_CONFORMANT_CONFIG as libc::c_int {
|
/*if caveat == ffi::glx::NON_CONFORMANT_CONFIG as libc::c_int {
|
||||||
return None;
|
return None;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
// TODO: make sure everything is supported
|
// TODO: make sure everything is supported
|
||||||
let pf = PixelFormat {
|
let pf = PixelFormat {
|
||||||
hardware_accelerated: caveat == ffi::glx::NONE as libc::c_int,
|
hardware_accelerated: caveat != ffi::glx::SLOW_CONFIG as libc::c_int,
|
||||||
color_bits: get_attrib(ffi::glx::RED_SIZE as libc::c_int, config) as u8 +
|
color_bits: get_attrib(ffi::glx::RED_SIZE as libc::c_int, config) as u8 +
|
||||||
get_attrib(ffi::glx::GREEN_SIZE as libc::c_int, config) as u8 +
|
get_attrib(ffi::glx::GREEN_SIZE as libc::c_int, config) as u8 +
|
||||||
get_attrib(ffi::glx::BLUE_SIZE as libc::c_int, config) as u8,
|
get_attrib(ffi::glx::BLUE_SIZE as libc::c_int, config) as u8,
|
||||||
|
|
Loading…
Reference in a new issue