(svn r26473) -Fix: make sure there is no uninitialised sprite data; the other blitters cleared the memory too

This commit is contained in:
rubidium 2014-04-20 14:55:28 +00:00
parent ddc35bc252
commit c8fffcd5ce
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ Sprite *Blitter_32bppSSE_Base::Encode(const SpriteLoader::Sprite *sprite, Alloca
/* Calculate sizes and allocate. */
SpriteData sd;
memset(&sd, 0, sizeof(sd));
uint all_sprites_size = 0;
for (ZoomLevel z = zoom_min; z <= zoom_max; z++) {
const SpriteLoader::Sprite *src_sprite = &sprite[z];