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
This commit is contained in:
Manuel Osdoba 2011-11-13 21:49:23 +01:00 committed by Emmanuele Bassi
parent 6336883da7
commit 67cdbbaf51

View File

@ -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);
}