(svn r13692) -Fix (r13674): loading PNG sprites could very quickly fill the sprite cache.
authorrubidium
Sat, 12 Jul 2008 14:03:36 +0000
changeset 11134 c40cabfe69a5
parent 11133 a75c67ae67b0
child 11135 6c703d2da75b
(svn r13692) -Fix (r13674): loading PNG sprites could very quickly fill the sprite cache.
src/spritecache.cpp
--- a/src/spritecache.cpp	Wed Jul 09 20:55:47 2008 +0000
+++ b/src/spritecache.cpp	Sat Jul 12 14:03:36 2008 +0000
@@ -147,6 +147,8 @@
 			sc->ptr = BlitterFactoryBase::GetCurrentBlitter()->Encode(&sprite, &AllocSprite);
 			free(sprite.data);
 
+			sc->real_sprite = true;
+
 			return sc->ptr;
 		}
 		/* If the PNG couldn't be loaded, fall back to 8bpp grfs */