gnome-games r8153 - trunk/aisleriot



Author: jclinton
Date: Tue Oct 21 19:46:05 2008
New Revision: 8153
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8153&view=rev

Log:
Forgot to clear the highlighted card images when clearing the texture
cache.

Modified:
   trunk/aisleriot/card-cache.c

Modified: trunk/aisleriot/card-cache.c
==============================================================================
--- trunk/aisleriot/card-cache.c	(original)
+++ trunk/aisleriot/card-cache.c	Tue Oct 21 19:46:05 2008
@@ -196,7 +196,7 @@
   AisleriotCardCachePrivate *priv = cache->priv;
   int i;
 
-  for (i = 0; i < GAMES_CARDS_TOTAL; i++)
+  for (i = 0; i < GAMES_CARDS_TOTAL * 2; i++)
     if (priv->cards[i] != COGL_INVALID_HANDLE) {
       cogl_texture_unref (priv->cards[i]);
       priv->cards[i] = COGL_INVALID_HANDLE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]