From 9c687430c8d6d12d7ba75ea51413b9d1654a0081 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 --HG-- branch : develop --- 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;