Fix PixelFormat for x11, egl and win32
This commit is contained in:
parent
80c49856b2
commit
36de5a5e5a
3 changed files with 10 additions and 12 deletions
|
|
@ -298,9 +298,9 @@ unsafe fn enumerate_configs(egl: &ffi::egl::Egl, display: ffi::egl::types::EGLDi
|
|||
result.push((config_id, PixelFormat {
|
||||
hardware_accelerated: attrib!(egl, display, config_id, ffi::egl::CONFIG_CAVEAT)
|
||||
!= ffi::egl::SLOW_CONFIG as i32,
|
||||
red_bits: attrib!(egl, display, config_id, ffi::egl::RED_SIZE) as u8,
|
||||
green_bits: attrib!(egl, display, config_id, ffi::egl::BLUE_SIZE) as u8,
|
||||
blue_bits: attrib!(egl, display, config_id, ffi::egl::GREEN_SIZE) as u8,
|
||||
color_bits: attrib!(egl, display, config_id, ffi::egl::RED_SIZE) as u8 +
|
||||
attrib!(egl, display, config_id, ffi::egl::BLUE_SIZE) as u8 +
|
||||
attrib!(egl, display, config_id, ffi::egl::GREEN_SIZE) as u8,
|
||||
alpha_bits: attrib!(egl, display, config_id, ffi::egl::ALPHA_SIZE) as u8,
|
||||
depth_bits: attrib!(egl, display, config_id, ffi::egl::DEPTH_SIZE) as u8,
|
||||
stencil_bits: attrib!(egl, display, config_id, ffi::egl::STENCIL_SIZE) as u8,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue