From 910ece0fb8ec271bc21d96f0c14ca3dacc005497 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 24 Aug 2011 16:13:25 +0100 Subject: 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 file changed, 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 */ -- cgit v1.2.1