mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 01:26:30 +00:00
Update mask pixel format in panoply preview tool
This commit is contained in:
parent
20f93996ea
commit
7d11f82e58
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue