From fd90b56df6b4a9bcaa596207e84cf167bfe8bc8c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 16 Mar 2024 09:23:16 -0400 Subject: [PATCH] gsk: Move and clarify a debug message Move the only error message in the OPENGL category to RENDERER, and make it clearer what and how. --- gsk/gl/gskglcommandqueue.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gsk/gl/gskglcommandqueue.c b/gsk/gl/gskglcommandqueue.c index f384d0c59b..3686ac6561 100644 --- a/gsk/gl/gskglcommandqueue.c +++ b/gsk/gl/gskglcommandqueue.c @@ -488,12 +488,14 @@ gsk_gl_command_queue_new (GdkGLContext *context, int max_texture_size = atoi (g_getenv ("GSK_MAX_TEXTURE_SIZE")); if (max_texture_size == 0) { - g_warning ("Failed to parse GSK_MAX_TEXTURE_SIZE"); + g_warning ("Failed to parse %s", "GSK_MAX_TEXTURE_SIZE"); } else { max_texture_size = MAX (max_texture_size, 512); - GSK_DEBUG(OPENGL, "Limiting max texture size to %d", max_texture_size); + GSK_DEBUG (RENDERER, + "Limiting texture size in the GL renderer to %d (via %s)", + max_texture_size, "GSK_MAX_TEXTURE_SIZE"); self->max_texture_size = MIN (self->max_texture_size, max_texture_size); } }