Fix uninitialized m_compressed_data

This commit is contained in:
Benau 2022-08-25 15:20:04 +08:00
parent 57c5446e55
commit 514e3a50ad
2 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,7 @@ GECompressorASTC4x4::GECompressorASTC4x4(uint8_t* texture, unsigned channels,
bool normal_map)
: GEMipmapGenerator(texture, channels, size, normal_map)
{
m_compressed_data = NULL;
#ifdef ENABLE_LIBASTCENC
assert(channels == 4);
size_t total_size = 0;

View File

@ -26,6 +26,7 @@ GECompressorBPTCBC7::GECompressorBPTCBC7(uint8_t* texture, unsigned channels,
bool normal_map)
: GEMipmapGenerator(texture, channels, size, normal_map)
{
m_compressed_data = NULL;
#ifdef BC7_ISPC
assert(channels == 4);
size_t total_size = 0;