From 8087b76397bffa4245fe8ea9a80450bb8f0eb419 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 --HG-- branch : develop --- 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