[Xfce4-commits] [xfce/xfwm4] 03/03: compositor: Clear GL buffers on startup

noreply at xfce.org noreply at xfce.org
Wed Jun 5 22:01:33 CEST 2019


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 84bf341edd0d11b2605e8bde7083a58172ca560b
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Wed Jun 5 21:59:22 2019 +0200

    compositor: Clear GL buffers on startup
    
    So that we don't show random data until the whole screen is refreshed.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compositor.c b/src/compositor.c
index e7f9287..4ebbf9a 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1368,6 +1368,9 @@ init_glx (ScreenInfo *screen_info)
     glDisable(GL_BLEND);
 
     glLoadIdentity();
+
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
     check_gl_error();
 
     return TRUE;

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


More information about the Xfce4-commits mailing list