Fixed: Warning when DDS_HEADER is not initialized

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 5ccf0df1ab
commit b93414cd27

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

Loading…
Cancel
Save