From d0b766e983a8eb3acb3ac1e6cea073cfc8f8fb29 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 29 Dec 2015 16:15:07 +0100 Subject: [PATCH] Fixed: Wrong bitmap size --- code/nel/tools/3d/panoply_maker/panoply_maker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/tools/3d/panoply_maker/panoply_maker.cpp b/code/nel/tools/3d/panoply_maker/panoply_maker.cpp index 80aabfaba..e3770ec67 100644 --- a/code/nel/tools/3d/panoply_maker/panoply_maker.cpp +++ b/code/nel/tools/3d/panoply_maker/panoply_maker.cpp @@ -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) {