[clutter] Currently Clutter only prints out a warning message in case some shader effects fail to compile
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Currently Clutter only prints out a warning message in case some shader effects fail to compile
- Date: Thu, 1 Dec 2011 11:00:30 +0000 (UTC)
commit 67cdbbaf514ca8b33e4e19014b935aea40e91822
Author: Manuel Osdoba <manuel osdoba acm org>
Date: Sun Nov 13 21:49:23 2011 +0100
Currently Clutter only prints out a warning message in case some shader effects fail to compile
Clutter-WARNING **: Unable to compile the GLSL
shader: Fragment shader failed to compile with the following errors:
The attached patch (against current git) should print out more
information what makes it easier to answer user feedback.
https://bugzilla.gnome.org/show_bug.cgi?id=664252
clutter/clutter-shader-effect.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-shader-effect.c b/clutter/clutter-shader-effect.c
index e53ee13..30951db 100644
--- a/clutter/clutter-shader-effect.c
+++ b/clutter/clutter-shader-effect.c
@@ -380,7 +380,7 @@ clutter_shader_effect_try_static_source (ClutterShaderEffect *self)
{
gchar *log_buf = cogl_shader_get_info_log (class_priv->shader);
- g_warning ("Unable to compile the GLSL shader: %s", log_buf);
+ g_warning (G_STRLOC ": Unable to compile the GLSL shader: %s", log_buf);
g_free (log_buf);
}
}
@@ -916,7 +916,7 @@ clutter_shader_effect_set_shader_source (ClutterShaderEffect *effect,
{
gchar *log_buf = cogl_shader_get_info_log (priv->shader);
- g_warning ("Unable to compile the GLSL shader: %s", log_buf);
+ g_warning (G_STRLOC ": Unable to compile the GLSL shader: %s", log_buf);
g_free (log_buf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]