gl: add prototypes for KHR_debug/ARB_debug_output

This commit is contained in:
Matthew Waters 2014-08-20 23:23:06 +10:00
parent 1cabb3b5a5
commit 14a3484b14
4 changed files with 22 additions and 2 deletions

View file

@ -11,5 +11,6 @@ prototype_HEADERS = \
opengl.h \
shaders.h \
gstgl_compat.h \
gstgl_gles2compat.h
gstgl_gles2compat.h \
debug.h

View file

@ -26,3 +26,4 @@
#include "gles.h"
#include "opengl.h"
#include "shaders.h"
#include "debug.h"

View 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

View 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>