summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-08-24 16:13:25 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-08-24 16:38:00 +0100
commit910ece0fb8ec271bc21d96f0c14ca3dacc005497 (patch)
treee0602ca74f5427d60ae50ccbcd94fc475001f734
parentc321ca8403ea9149a56b7479b6d589bc0e429d7d (diff)
downloadclutter-gst-910ece0fb8ec271bc21d96f0c14ca3dacc005497.tar.gz
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.
-rw-r--r--clutter-gst/clutter-gst-debug.h10
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 */