From dc5ddadcbb7eaf3a30a13e69b9653e11d5bed275 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 5 Jan 2016 12:54:47 +0100 Subject: [PATCH] Fixed: Alpha channel with 0 is correct, don't change it --HG-- branch : develop --- code/nel/tools/3d/textures_optimizer/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/nel/tools/3d/textures_optimizer/main.cpp b/code/nel/tools/3d/textures_optimizer/main.cpp index 022709444..4739ac2d7 100644 --- a/code/nel/tools/3d/textures_optimizer/main.cpp +++ b/code/nel/tools/3d/textures_optimizer/main.cpp @@ -191,9 +191,9 @@ int main(int argc, char **argv) { std::cout << InputFilenames[i] << " (image with uniform alpha channel " << (sint)alpha << ")" << std::endl; - if (FixAlpha && (alpha == 0 || alpha == 255)) - { - bitmap.makeOpaque(); + if (FixAlpha && alpha == 255) + { + bitmap.makeOpaque(); hasAlpha = false; modified = true;