[gtk+/wip/ebassi/gl-context-realize: 10/12] gl: Add more debugging notes



commit 80ee3c46f86cf472aa3f3d8fe6b5c6f1d0cd424f
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Feb 5 16:23:04 2015 +0000

    gl: Add more debugging notes

 gdk/gdkglcontext.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index 3ffaf8f..bb914f7 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -631,6 +631,19 @@ gdk_gl_context_check_extensions (GdkGLContext *context)
   else
     g_warning ("GL implementation doesn't support any form of non-power-of-two textures");
 
+  GDK_NOTE (OPENGL,
+            g_print ("Extensions checked:\n"
+                     " - GL_ARB_texture_non_power_of_two: %s\n"
+                     " - GL_ARB_texture_rectangle: %s\n"
+                     " - GL_EXT_framebuffer_blit: %s\n"
+                     " - GL_GREMEDY_frame_terminator: %s\n"
+                     "Using texture rectangle: %s\n",
+                     has_npot ? "yes" : "no",
+                     has_texture_rectangle ? "yes" : "no",
+                     priv->has_gl_framebuffer_blit ? "yes" : "no",
+                     priv->has_frame_terminator ? "yes" : "no",
+                     priv->use_texture_rectangle ? "yes" : "no"));
+
   priv->extensions_checked = TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]