From b93414cd272bbf4963c7fbddf4f31a7f76748b81 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 28 Dec 2015 16:41:26 +0100 Subject: [PATCH] Fixed: Warning when DDS_HEADER is not initialized --HG-- branch : develop --- code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp b/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp index 9d6506197..1ffeabf77 100644 --- a/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp +++ b/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp @@ -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)