Fixed: Warning when DDS_HEADER is not initialized

This commit is contained in:
kervala 2015-12-28 16:41:26 +01:00
parent c9c4a69b8d
commit f89593135c

View file

@ -179,6 +179,8 @@ void CS3TCCompressor::compress(const NLMISC::CBitmap &bmpSrc, bool optMipMap, u
DDS_HEADER dest; DDS_HEADER dest;
NLMISC::CBitmap picSrc= bmpSrc; NLMISC::CBitmap picSrc= bmpSrc;
// initialize DDS_HEADER
memset(&dest, 0, sizeof(dest));
// For all mipmaps, compress. // For all mipmaps, compress.
if(optMipMap) if(optMipMap)