[Xfce4-commits] [xfce/xfwm4] 03/03: compositor: Skip ARGB10 GLX configs

noreply at xfce.org noreply at xfce.org
Tue Jul 17 11:46:42 CEST 2018


This is an automated email from the git hooks/post-receive script.

o   l   i   v   i   e   r       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfwm4.

commit dc1610147ddfc77df40cf24c88c8083f24e531ef
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Jul 17 11:45:15 2018 +0200

    compositor: Skip ARGB10 GLX configs
    
    Bug: 14475
    
    Skip ARGB10 GLX configs as it won't work well.
---
 src/compositor.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index b4b03f8..4f936d0 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1202,6 +1202,16 @@ choose_glx_settings (ScreenInfo *screen_info)
 
         status = glXGetFBConfigAttrib (myScreenGetXDisplay (screen_info),
                                        configs[i],
+                                       GLX_RED_SIZE,
+                                       &value);
+        if (status == Success && value > 8)
+        {
+            DBG ("%i/%i: RGB10 config, skipped", i + 1, n_configs);
+            continue;
+        }
+
+        status = glXGetFBConfigAttrib (myScreenGetXDisplay (screen_info),
+                                       configs[i],
                                        GLX_BIND_TO_TEXTURE_RGBA_EXT,
                                        &value);
         if (status == Success && value == TRUE)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list