test: Fixed test-rotate for osx platfom

There was a bug in clutter-shader-effect. We have to set to zero new object
of type GValue before we can use it in g_value_init.
This commit is contained in:
Roman Kudiyarov 2010-08-04 12:08:50 +07:00 committed by Robert Bragg
parent 52b6a3cd49
commit c1f0b59911

View File

@ -514,6 +514,7 @@ shader_uniform_new (const gchar *name,
retval->name = g_strdup (name);
retval->type = G_VALUE_TYPE (value);
retval->location = -1;
retval->value = (GValue){0};
g_value_init (&retval->value, retval->type);
g_value_copy (value, &retval->value);