[Xfce4-commits] [xfce/xfwm4] 05/07: compositor: Keep glGetError() for debug only

noreply at xfce.org noreply at xfce.org
Tue Aug 25 19:02:10 CEST 2015


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

olivier pushed a commit to branch master
in repository xfce/xfwm4.

commit d8fe4788541f5092e049b8f18ce1fbcfc2a09147
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Tue Aug 25 16:55:28 2015 +0200

    compositor: Keep glGetError() for debug only
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 src/compositor.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index 4fb7bd4..8694956 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1010,8 +1010,9 @@ cursor_to_picture (ScreenInfo *screen_info, XFixesCursorImage *cursor)
 static gboolean
 check_gl_error (void)
 {
-    GLenum error;
     gboolean clean = TRUE;
+#ifdef DEBUG /* glGetError() is expensive, keep it for debug only */
+    GLenum error;
 
      error = glGetError();
      while (error != GL_NO_ERROR);
@@ -1039,7 +1040,7 @@ check_gl_error (void)
         }
         error = glGetError();
     }
-
+#endif
     return clean;
 }
 

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


More information about the Xfce4-commits mailing list