diff --git a/cogl/cogl/cogl-trace.c b/cogl/cogl/cogl-trace.c index f0dbe98c6..cc724c984 100644 --- a/cogl/cogl/cogl-trace.c +++ b/cogl/cogl/cogl-trace.c @@ -342,7 +342,15 @@ void cogl_trace_describe (CoglTraceHead *head, const char *description) { - head->description = g_strdup (description); + if (head->description) + { + char *old_description = head->description; + head->description = + g_strdup_printf ("%s, %s", old_description, description); + g_free (old_description); + } + else + head->description = g_strdup (description); } #else