From c8fffcd5ce86b35d1ef3101dba776a58e6ab20b5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 20 Apr 2014 14:55:28 +0000 Subject: (svn r26473) -Fix: make sure there is no uninitialised sprite data; the other blitters cleared the memory too --- src/blitter/32bpp_sse2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/blitter') diff --git a/src/blitter/32bpp_sse2.cpp b/src/blitter/32bpp_sse2.cpp index 40b3620a2..5b7316cce 100644 --- a/src/blitter/32bpp_sse2.cpp +++ b/src/blitter/32bpp_sse2.cpp @@ -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]; -- cgit v1.2.3-70-g09d2