From b70c68d3321628f382aad2600d94148af09c5d55 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 29 May 2010 13:44:12 +0200 Subject: [PATCH] Fixed: Png read didn't implement _LoadGrayscaleAsAlpha. --- code/nel/src/misc/bitmap_png.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/misc/bitmap_png.cpp b/code/nel/src/misc/bitmap_png.cpp index 852f10586..622316b41 100644 --- a/code/nel/src/misc/bitmap_png.cpp +++ b/code/nel/src/misc/bitmap_png.cpp @@ -163,7 +163,7 @@ uint8 CBitmap::readPNG( NLMISC::IStream &f ) dstChannels = 1; firstChannel = 0; lastChannel = 0; - resize (width, height, Luminance); + resize (width, height, _LoadGrayscaleAsAlpha ? Alpha : Luminance); } else if (iColorType == PNG_COLOR_TYPE_GRAY_ALPHA) {