[gtk+/wip/ebassi/gles: 16/26] wayland: Add debugging notes for EGL context creation
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/ebassi/gles: 16/26] wayland: Add debugging notes for EGL context creation
- Date: Sun, 24 Apr 2016 14:10:35 +0000 (UTC)
commit f07903973dce0d82813ab76048f83e57dd89c71c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Apr 22 18:50:50 2016 +0100
wayland: Add debugging notes for EGL context creation
gdk/wayland/gdkglcontext-wayland.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkglcontext-wayland.c b/gdk/wayland/gdkglcontext-wayland.c
index e61b24d..8ae3942 100644
--- a/gdk/wayland/gdkglcontext-wayland.c
+++ b/gdk/wayland/gdkglcontext-wayland.c
@@ -162,6 +162,13 @@ gdk_wayland_gl_context_realize (GdkGLContext *context,
context_attribs[i++] = EGL_NONE;
g_assert (i < N_EGL_ATTRS);
+ GDK_NOTE (OPENGL, g_message ("Creating EGL context version %d.%d (debug:%s, forward:%s, legacy:%s, es:%s)",
+ major, minor,
+ debug_bit ? "yes" : "no",
+ forward_bit ? "yes" : "no",
+ legacy_bit ? "yes" : "no",
+ use_es ? "yes" : "no"));
+
ctx = eglCreateContext (display_wayland->egl_display,
context_wayland->egl_config,
share != NULL ? GDK_WAYLAND_GL_CONTEXT (share)->egl_context
@@ -178,7 +185,9 @@ gdk_wayland_gl_context_realize (GdkGLContext *context,
context_attribs[5] = 0;
legacy_bit = TRUE;
+ use_es = FALSE;
+ GDK_NOTE (OPENGL, g_message ("eglCreateContext failed, switching to legacy"));
ctx = eglCreateContext (display_wayland->egl_display,
context_wayland->egl_config,
share != NULL ? GDK_WAYLAND_GL_CONTEXT (share)->egl_context
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]