Fixed: Wrong bitmap size

This commit is contained in:
kervala 2015-12-29 16:15:07 +01:00
parent e8bbbe04e4
commit 68c163ef16

View file

@ -669,7 +669,7 @@ static void BuildColoredVersionForOneBitmap(const CBuildInfo &bi, const std::str
// we can save it as RGB to optimize it
if (bi.OptimizeTextures > 0 && depth == 32)
{
uint32 size = srcBitmap.getSize(0);
uint32 size = srcBitmap.getPixels().size();
if (size > 0)
{