diff --git a/gst-libs/gst/gl/glprototypes/Makefile.am b/gst-libs/gst/gl/glprototypes/Makefile.am index 6528630e34..3cb8503243 100644 --- a/gst-libs/gst/gl/glprototypes/Makefile.am +++ b/gst-libs/gst/gl/glprototypes/Makefile.am @@ -11,5 +11,6 @@ prototype_HEADERS = \ opengl.h \ shaders.h \ gstgl_compat.h \ - gstgl_gles2compat.h + gstgl_gles2compat.h \ + debug.h diff --git a/gst-libs/gst/gl/glprototypes/all_functions.h b/gst-libs/gst/gl/glprototypes/all_functions.h index 12f9a623e9..42e0648005 100644 --- a/gst-libs/gst/gl/glprototypes/all_functions.h +++ b/gst-libs/gst/gl/glprototypes/all_functions.h @@ -26,3 +26,4 @@ #include "gles.h" #include "opengl.h" #include "shaders.h" +#include "debug.h" diff --git a/gst-libs/gst/gl/glprototypes/gstgl_compat.h b/gst-libs/gst/gl/glprototypes/gstgl_compat.h index 5e1f8bb38f..726dfce164 100644 --- a/gst-libs/gst/gl/glprototypes/gstgl_compat.h +++ b/gst-libs/gst/gl/glprototypes/gstgl_compat.h @@ -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 diff --git a/gst-libs/gst/gl/gstglapi.h b/gst-libs/gst/gl/gstglapi.h index b136662453..fa6831ec70 100644 --- a/gst-libs/gst/gl/gstglapi.h +++ b/gst-libs/gst/gl/gstglapi.h @@ -22,7 +22,6 @@ #define __GST_GL_API_H__ #include -#include #if GST_GL_HAVE_PLATFORM_EGL @@ -86,6 +85,7 @@ #else #define GSTGLAPI #endif +#include #include