From 7e22b01a51774b8390e37bf1e288ccb7e010eb82 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 20:29:24 +0100 Subject: [PATCH] Fixed: Load 8bits textures as grayscale instead of alpha in textures_optimizer --- code/nel/tools/3d/textures_optimizer/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/tools/3d/textures_optimizer/main.cpp b/code/nel/tools/3d/textures_optimizer/main.cpp index 8ecffedab..022709444 100644 --- a/code/nel/tools/3d/textures_optimizer/main.cpp +++ b/code/nel/tools/3d/textures_optimizer/main.cpp @@ -131,6 +131,9 @@ int main(int argc, char **argv) NLMISC::CBitmap bitmap; + // all 8 bits textures are grayscale and not alpha + bitmap.loadGrayscaleAsAlpha(false); + uint8 depth = bitmap.load(input); // don't need file so close it