From f98be241a89cf4a9f23555631f2a7f722745f39b Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 6 Aug 2010 18:42:01 +0100 Subject: [PATCH] cogl-atlas: Add some more debugging notes This adds some debugging notes which report when the atlas is trying various sizes. --- clutter/cogl/cogl/cogl-atlas.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clutter/cogl/cogl/cogl-atlas.c b/clutter/cogl/cogl/cogl-atlas.c index 1231e6848..9676fe014 100644 --- a/clutter/cogl/cogl/cogl-atlas.c +++ b/clutter/cogl/cogl/cogl-atlas.c @@ -338,6 +338,9 @@ _cogl_atlas_create_map (unsigned int map_width, NULL); unsigned int i; + COGL_NOTE (ATLAS, "Trying to resize the atlas to %ux%u", + map_width, map_height); + /* Add all of the textures and keep track of the new position */ for (i = 0; i < n_textures; i++) if (!_cogl_rectangle_map_add (new_atlas, @@ -351,6 +354,10 @@ _cogl_atlas_create_map (unsigned int map_width, winner */ if (i >= n_textures) return new_atlas; + else + COGL_NOTE (ATLAS, "Atlas size abandoned after trying " + "%u out of %u textures", + i, n_textures); _cogl_rectangle_map_free (new_atlas); _cogl_atlas_get_next_size (&map_width, &map_height);