[clutter] stage: Use the debug name for the pick buffer dump stem
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] stage: Use the debug name for the pick buffer dump stem
- Date: Wed, 1 Jun 2011 17:35:23 +0000 (UTC)
commit eed174461286ce983e06893a73592edc50a64373
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Wed Jun 1 18:33:27 2011 +0100
stage: Use the debug name for the pick buffer dump stem
This avoids overwriting files in the multi-stage case.
clutter/clutter-stage.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 872b240..68b7873 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -1363,9 +1363,16 @@ _clutter_stage_do_pick (ClutterStage *stage,
if (G_UNLIKELY (clutter_pick_debug_flags & CLUTTER_DEBUG_DUMP_PICK_BUFFERS))
{
- read_pixels_to_file ("pick-buffer", 0, 0,
+ char *file_name =
+ g_strconcat ("pick-buffer-",
+ _clutter_actor_get_debug_name (CLUTTER_ACTOR (stage)),
+ NULL);
+
+ read_pixels_to_file (file_name, 0, 0,
clutter_actor_get_width (CLUTTER_ACTOR (stage)),
clutter_actor_get_height (CLUTTER_ACTOR (stage)));
+
+ g_free (file_name);
}
/* Restore whether GL_DITHER was enabled */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]