[Xfce4-commits] [xfce/xfwm4] 01/02: compositor/GLX: Synchronize GLX and X rendering

noreply at xfce.org noreply at xfce.org
Mon Jul 30 21:02:38 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 0e6b9404219838f90e3f22ae2ac52a526453547d
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Mon Jul 30 20:57:57 2018 +0200

    compositor/GLX: Synchronize GLX and X rendering
    
    Bug: 14564
    
    Might help with synchronization issues and flickering some people report
    with GLX.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index e71f619..8cbe175 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1501,6 +1501,9 @@ redraw_glx_texture (ScreenInfo *screen_info)
     TRACE ("(re)Drawing GLX pixmap 0x%lx/texture 0x%x",
            screen_info->glx_drawable, screen_info->rootTexture);
 
+    /* Make sure previous updates are completed */
+    glXWaitX ();
+
     glMatrixMode(GL_TEXTURE);
     glPushMatrix();
 
@@ -1548,6 +1551,8 @@ redraw_glx_texture (ScreenInfo *screen_info)
     glXReleaseTexImageEXT (myScreenGetXDisplay (screen_info),
                            screen_info->glx_drawable, GLX_FRONT_EXT);
 
+    glXWaitGL ();
+
     check_gl_error();
 }
 #endif /* HAVE_EPOXY */
@@ -2207,7 +2212,6 @@ paint_all (ScreenInfo *screen_info, XserverRegion region, gushort buffer)
 #ifdef HAVE_EPOXY
     if (screen_info->use_glx)
     {
-        glXWaitX ();
         bind_glx_texture (screen_info,
                           screen_info->rootPixmap[buffer]);
         redraw_glx_texture (screen_info);

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


More information about the Xfce4-commits mailing list