gl: Make glcontext debug category used in more places

As a bonus it makes the egl context debug messages visible now :)
This commit is contained in:
Edward Hervey 2015-02-12 14:58:14 +01:00
parent 638f99a37a
commit 929a6a75d2
2 changed files with 7 additions and 1 deletions

View file

@ -38,6 +38,8 @@
#include "../win32/gstglwindow_win32.h"
#endif
#define GST_CAT_DEFAULT gst_gl_context_debug
static gboolean gst_gl_context_egl_create_context (GstGLContext * context,
GstGLAPI gl_api, GstGLContext * other_context, GError ** error);
static void gst_gl_context_egl_destroy_context (GstGLContext * context);
@ -227,6 +229,8 @@ gst_gl_context_egl_create_context (GstGLContext * context,
egl = GST_GL_CONTEXT_EGL (context);
window = gst_gl_context_get_window (context);
GST_DEBUG_OBJECT (context, "Creating EGL context");
if (other_context) {
if (gst_gl_context_get_gl_platform (other_context) != GST_GL_PLATFORM_EGL) {
g_set_error (error, GST_GL_CONTEXT_ERROR,
@ -330,7 +334,7 @@ gst_gl_context_egl_create_context (GstGLContext * context,
egl_exts = eglQueryString (egl->egl_display, EGL_EXTENSIONS);
GST_DEBUG ("about to create gl context\n");
GST_DEBUG ("about to create gl context");
if (egl->gl_api & GST_GL_API_GLES2) {
context_attrib[i++] = EGL_CONTEXT_CLIENT_VERSION;

View file

@ -151,6 +151,8 @@ gboolean gst_gl_context_fill_info (GstGLContext * context, GError ** error);
void gst_gl_context_thread_add (GstGLContext * context,
GstGLContextThreadFunc func, gpointer data);
GST_DEBUG_CATEGORY_EXTERN (gst_gl_context_debug);
G_END_DECLS
#endif /* __GST_GL_CONTEXT_H__ */