#include "gl.h"
#include "gstglfeature.h"
+#define GST_CAT_DEFAULT gl_feature
+GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
+
+static void
+_init_debug (void)
+{
+ static volatile gsize _init = 0;
+
+ if (g_once_init_enter (&_init)) {
+ GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "glfeature", 0,
+ "OpenGL feature detection");
+ g_once_init_leave (&_init, 1);
+ }
+}
+
gboolean
gst_gl_check_extension (const char *name, const gchar * ext)
{
{
int i;
+ _init_debug ();
+
for (i = 0; i < G_N_ELEMENTS (gst_gl_feature_ext_functions_data); i++) {
_gst_gl_feature_check (context, "GL",
gst_gl_feature_ext_functions_data + i, gl_major, gl_minor,