From 3949cf297888df0758f8b703c4be10b1cf0e63e1 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 15 Jan 2016 17:22:27 +0100 Subject: [PATCH] Update mask pixel format in panoply preview tool --- code/nel/tools/3d/panoply_preview/panoply_preview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/tools/3d/panoply_preview/panoply_preview.cpp b/code/nel/tools/3d/panoply_preview/panoply_preview.cpp index 964711eea..1eae30d9c 100644 --- a/code/nel/tools/3d/panoply_preview/panoply_preview.cpp +++ b/code/nel/tools/3d/panoply_preview/panoply_preview.cpp @@ -263,8 +263,8 @@ void CPanoplyPreview::goPushed(bool) uint32 depth = m_ColorThread->MaskBitmap.load(is); if (depth == 0 || m_ColorThread->MaskBitmap.getPixels().empty()) throw NLMISC::Exception("Failed to load bitmap '%s'", m_MaskFile.toLocal8Bit().data()); - if (m_ColorThread->MaskBitmap.PixelFormat != NLMISC::CBitmap::RGBA) - m_ColorThread->MaskBitmap.convertToType(NLMISC::CBitmap::RGBA); + if (m_ColorThread->MaskBitmap.PixelFormat != NLMISC::CBitmap::Luminance) + m_ColorThread->MaskBitmap.convertToType(NLMISC::CBitmap::Luminance); } { m_ColorThread->BitmapsOk = true;