diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-30 12:35:31 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-30 12:35:31 +0100 |
commit | b0a0f07bd7058888b0387078e072719385c00865 (patch) | |
tree | 5c7ece00eb83b8920b4a16aecf2ebc81e9737ea2 /demos | |
parent | 87393c7fb6d533dbc3eeab533312c99ab80c1754 (diff) | |
download | gtk+-b0a0f07bd7058888b0387078e072719385c00865.tar.gz |
demo: Replace g_print with g_debug
The GtkGears widget is a bit too chatty, especially when used inside
demos like the fishbowl. Let's use g_debug() instead of g_print() for
the GL debugging message.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/gtkgears.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/gtk-demo/gtkgears.c b/demos/gtk-demo/gtkgears.c index b56975f2eb..ba52ddd1b0 100644 --- a/demos/gtk-demo/gtkgears.c +++ b/demos/gtk-demo/gtkgears.c @@ -764,7 +764,7 @@ gtk_gears_realize (GtkWidget *widget) glShaderSource(v, 1, &p, NULL); glCompileShader(v); glGetShaderInfoLog(v, sizeof msg, NULL, msg); - g_print ("vertex shader info: %s\n", msg); + g_debug ("vertex shader info: %s\n", msg); /* Compile the fragment shader */ if (gdk_gl_context_get_use_es (context)) @@ -775,7 +775,7 @@ gtk_gears_realize (GtkWidget *widget) glShaderSource(f, 1, &p, NULL); glCompileShader(f); glGetShaderInfoLog(f, sizeof msg, NULL, msg); - g_print ("fragment shader info: %s\n", msg); + g_debug ("fragment shader info: %s\n", msg); /* Create and link the shader program */ program = glCreateProgram(); @@ -786,7 +786,7 @@ gtk_gears_realize (GtkWidget *widget) glLinkProgram(program); glGetProgramInfoLog(program, sizeof msg, NULL, msg); - g_print ("program info: %s\n", msg); + g_debug ("program info: %s\n", msg); glDeleteShader (v); glDeleteShader (f); |