From eedcd2f265d31c16eb2e9791c9d9f21c0505cf18 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 5 Jan 2016 17:11:37 +0100 Subject: [PATCH] Fixed: Don't load grayscale textures as alpha --- code/nel/tools/3d/panoply_maker/panoply_maker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/tools/3d/panoply_maker/panoply_maker.cpp b/code/nel/tools/3d/panoply_maker/panoply_maker.cpp index 328639eb6..2c50dfc83 100644 --- a/code/nel/tools/3d/panoply_maker/panoply_maker.cpp +++ b/code/nel/tools/3d/panoply_maker/panoply_maker.cpp @@ -656,6 +656,9 @@ static void BuildColoredVersionForOneBitmap(const CBuildInfo &bi, const std::str { if (is.open(fullInputBitmapPath)) { + // 8 bits textures are grayscale + srcBitmap.loadGrayscaleAsAlpha(false); + depth = srcBitmap.load(is); is.close();