aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-09-04 20:55:59 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-09-04 20:55:59 +0200
commit8092fd640938366110627027b3471025abd2c4b9 (patch)
tree70f28cd9da3477ffe0d1f7fdf48537aab1742b4b /src
parent08cb668037c9fd1608c376a93623b4a60a5d3c46 (diff)
parentcb749ad904b09d9e123304fa7fa9dd17b42a6181 (diff)
downloadglutin-8092fd640938366110627027b3471025abd2c4b9.tar.gz
glutin-8092fd640938366110627027b3471025abd2c4b9.zip
Merge pull request #590 from tomaka/glx-non-conformant
No longer filter out non-conformant formats
Diffstat (limited to 'src')
-rw-r--r--src/api/glx/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/api/glx/mod.rs b/src/api/glx/mod.rs
index 0b2cf9f..a1ee092 100644
--- a/src/api/glx/mod.rs
+++ b/src/api/glx/mod.rs
@@ -384,14 +384,15 @@ unsafe fn enumerate_configs(glx: &ffi::glx::Glx, xlib: &ffi::Xlib, display: *mut
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);
- if caveat == ffi::glx::NON_CONFORMANT_CONFIG as libc::c_int {
+ /*if caveat == ffi::glx::NON_CONFORMANT_CONFIG as libc::c_int {
return None;
- }
+ }*/
// TODO: make sure everything is supported
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 +
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,