mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
gl: add prototypes for KHR_debug/ARB_debug_output
This commit is contained in:
parent
a76fe07919
commit
d7a465f9da
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