# HG changeset patch # User Matti Hamalainen # Date 1544466918 -7200 # Node ID a14286e2710e0559ac4d6ad4233c8b505b3af413 # Parent 7e4087e2740dc9353a7c7a9e0b70ee10d92835f9 Initialize the destination image data in case of IFF ACBM loading. diff -r 7e4087e2740d -r a14286e2710e tools/libgfx.c --- a/tools/libgfx.c Mon Dec 10 19:36:48 2018 +0200 +++ b/tools/libgfx.c Mon Dec 10 20:35:18 2018 +0200 @@ -1701,6 +1701,9 @@ // Decode the chunk if (iff->idsig == IFF_ID_ACBM) { + // Initialize destination image data + dmMemset(img->data, 0, img->size); + for (int plane = 0; plane < nplanes; plane++) { // Decompress or read data