[clutter-gst] misc: Remove an unsued macro that was using glGetError()



commit 910ece0fb8ec271bc21d96f0c14ca3dacc005497
Author: Damien Lespiau <damien lespiau intel com>
Date:   Wed Aug 24 16:13:25 2011 +0100

    misc: Remove an unsued macro that was using glGetError()
    
    No direct GL access should be the goal, plus removing unused code is
    always a win.

 clutter-gst/clutter-gst-debug.h |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-debug.h b/clutter-gst/clutter-gst-debug.h
index 1077c39..96b4541 100644
--- a/clutter-gst/clutter-gst-debug.h
+++ b/clutter-gst/clutter-gst-debug.h
@@ -90,15 +90,6 @@ G_STMT_START {                                                \
 
 #define CLUTTER_GST_MARK()      CLUTTER_GST_NOTE(MISC, "== mark ==")
 
-#define CLUTTER_GST_GLERR()                                   \
-G_STMT_START {                                                \
-    if (clutter_gst_debug_flags & CLUTTER_GST_DEBUG_GL)       \
-      { GLenum _err = glGetError (); /* roundtrip */          \
-        if (_err != GL_NO_ERROR)                              \
-          g_warning (G_STRLOC ": GL Error %x", _err);         \
-      }                                                       \
-} G_STMT_END
-
 /* We do not even define those (private) symbols when debug is disabled.
  * This is to ensure the debug code is not shiped with the library when
  * disabled */
@@ -112,7 +103,6 @@ gboolean  _clutter_gst_debug_init       (void);
 
 #define CLUTTER_GST_NOTE(type,...)         G_STMT_START { } G_STMT_END
 #define CLUTTER_GST_MARK()                 G_STMT_START { } G_STMT_END
-#define CLUTTER_GST_GLERR()                G_STMT_START { } G_STMT_END
 #define CLUTTER_GST_TIMESTAMP(type,...)    G_STMT_START { } G_STMT_END
 
 #endif /* CLUTTER_GST_ENABLE_DEBUG */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]