mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gl: add prototypes for KHR_debug/ARB_debug_output
This commit is contained in:
parent
1cabb3b5a5
commit
14a3484b14
4 changed files with 22 additions and 2 deletions
|
@ -11,5 +11,6 @@ prototype_HEADERS = \
|
||||||
opengl.h \
|
opengl.h \
|
||||||
shaders.h \
|
shaders.h \
|
||||||
gstgl_compat.h \
|
gstgl_compat.h \
|
||||||
gstgl_gles2compat.h
|
gstgl_gles2compat.h \
|
||||||
|
debug.h
|
||||||
|
|
||||||
|
|
|
@ -26,3 +26,4 @@
|
||||||
#include "gles.h"
|
#include "gles.h"
|
||||||
#include "opengl.h"
|
#include "opengl.h"
|
||||||
#include "shaders.h"
|
#include "shaders.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
|
@ -37,4 +37,22 @@ typedef ptrdiff_t GLsizeiptr;
|
||||||
typedef ptrdiff_t GLintptr;
|
typedef ptrdiff_t GLintptr;
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#define __GST_GL_API_H__
|
#define __GST_GL_API_H__
|
||||||
|
|
||||||
#include <gst/gl/gstglconfig.h>
|
#include <gst/gl/gstglconfig.h>
|
||||||
#include <gst/gl/glprototypes/gstgl_compat.h>
|
|
||||||
|
|
||||||
#if GST_GL_HAVE_PLATFORM_EGL
|
#if GST_GL_HAVE_PLATFORM_EGL
|
||||||
|
|
||||||
|
@ -86,6 +85,7 @@
|
||||||
#else
|
#else
|
||||||
#define GSTGLAPI
|
#define GSTGLAPI
|
||||||
#endif
|
#endif
|
||||||
|
#include <gst/gl/glprototypes/gstgl_compat.h>
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue