From e752193a5468bbc69c57a2de3d22c695cc6f73ba Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 9 Mar 2010 14:08:22 -0500 Subject: [PATCH] [StTextureCache] The requested size needs to be part of the cache key Otherwise we'll only render it once, which is clearly wrong. --- src/st/st-texture-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index ad33e52b4..5731ef977 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -946,7 +946,7 @@ st_texture_cache_load_gicon (StTextureCache *cache, GtkIconInfo *info; gicon_string = g_icon_to_string (icon); - key = g_strconcat (CACHE_PREFIX_GICON, gicon_string, NULL); + key = g_strdup_printf ("%s%s,size=%d", CACHE_PREFIX_GICON, gicon_string, size); g_free (gicon_string); if (create_texture_and_ensure_request (cache, key, size, &request, &texture))