summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-09-22 20:48:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-09-23 18:11:48 -0400
commit1d48f96fc5c7fc6e9380fb25b6dac993b110e9a6 (patch)
treeaab6092c7784e2aef6b8f954b23b775ed2eb8d95 /gdk/gdkdisplay.c
parent10255eee722634d5b85df757687d9fe7a4ca2b91 (diff)
downloadgtk+-1d48f96fc5c7fc6e9380fb25b6dac993b110e9a6.tar.gz
gdk: Use the new debug macros
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 1f4a6ab0ae..4e25150bfa 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1729,28 +1729,31 @@ gdk_display_init_egl (GdkDisplay *self,
if (priv->egl_config_high_depth == NULL)
priv->egl_config_high_depth = priv->egl_config;
- GDK_DISPLAY_NOTE (self, OPENGL, {
+#ifdef G_ENABLE_DEBUG
+ if (GDK_DISPLAY_DEBUG_CHECK (self, OPENGL))
+ {
char *ext = describe_extensions (priv->egl_display);
char *std_cfg = describe_egl_config (priv->egl_display, priv->egl_config);
char *hd_cfg = describe_egl_config (priv->egl_display, priv->egl_config_high_depth);
- g_message ("EGL API version %d.%d found\n"
- " - Vendor: %s\n"
- " - Version: %s\n"
- " - Client APIs: %s\n"
- " - Extensions:\n"
- "\t%s\n"
- " - Selected fbconfig: %s\n"
- " high depth: %s",
- major, minor,
- eglQueryString (priv->egl_display, EGL_VENDOR),
- eglQueryString (priv->egl_display, EGL_VERSION),
- eglQueryString (priv->egl_display, EGL_CLIENT_APIS),
- ext, std_cfg,
- priv->egl_config_high_depth == priv->egl_config ? "none" : hd_cfg);
+ gdk_debug_message ("EGL API version %d.%d found\n"
+ " - Vendor: %s\n"
+ " - Version: %s\n"
+ " - Client APIs: %s\n"
+ " - Extensions:\n"
+ "\t%s\n"
+ " - Selected fbconfig: %s\n"
+ " high depth: %s",
+ major, minor,
+ eglQueryString (priv->egl_display, EGL_VENDOR),
+ eglQueryString (priv->egl_display, EGL_VERSION),
+ eglQueryString (priv->egl_display, EGL_CLIENT_APIS),
+ ext, std_cfg,
+ priv->egl_config_high_depth == priv->egl_config ? "none" : hd_cfg);
g_free (hd_cfg);
g_free (std_cfg);
g_free (ext);
- });
+ }
+#endif
gdk_profiler_end_mark (start_time, "init EGL", NULL);