gl: add prototypes for KHR_debug/ARB_debug_output
authorMatthew Waters <ystreet00@gmail.com>
Wed, 20 Aug 2014 13:23:06 +0000 (23:23 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:45 +0000 (19:31 +0000)
gst-libs/gst/gl/glprototypes/Makefile.am
gst-libs/gst/gl/glprototypes/all_functions.h
gst-libs/gst/gl/glprototypes/gstgl_compat.h
gst-libs/gst/gl/gstglapi.h

index 6528630..3cb8503 100644 (file)
@@ -11,5 +11,6 @@ prototype_HEADERS = \
        opengl.h \
        shaders.h \
        gstgl_compat.h \
-       gstgl_gles2compat.h
+       gstgl_gles2compat.h \
+       debug.h
 
index 12f9a62..42e0648 100644 (file)
@@ -26,3 +26,4 @@
 #include "gles.h"
 #include "opengl.h"
 #include "shaders.h"
+#include "debug.h"
index 5e1f8bb..726dfce 100644 (file)
@@ -37,4 +37,22 @@ typedef ptrdiff_t GLsizeiptr;
 typedef ptrdiff_t GLintptr;
 #endif
 
+#if !defined(GST_GL_DEBUG_PROC)
+#if defined(GLDEBUGPROC)
+#define GST_GL_DEBUG_PROC GLDEBUGPROC
+#elif defined(GLDEBUGPROCARB)
+#define GST_GL_DEBUG_PROC GLDEBUGPROCARB
+#elif defined(GLDEBUGPROCKHR)
+#define GST_GL_DEBUG_PROC GLDEBUGPROCKHR
+#else
+typedef void (GSTGLAPI *GST_GL_DEBUG_PROC) (GLenum source,
+                                            GLenum type,
+                                            GLuint id,
+                                            GLenum severity,
+                                            GLsizei length,
+                                            const gchar* message,
+                                            gpointer user_data);
+#endif
+#endif
+
 #endif
index b136662..fa6831e 100644 (file)
@@ -22,7 +22,6 @@
 #define __GST_GL_API_H__
 
 #include <gst/gl/gstglconfig.h>
-#include <gst/gl/glprototypes/gstgl_compat.h>
 
 #if GST_GL_HAVE_PLATFORM_EGL
 
@@ -86,6 +85,7 @@
 #else
 #define GSTGLAPI
 #endif
+#include <gst/gl/glprototypes/gstgl_compat.h>
 
 #include <gst/gst.h>