mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-19 05:36:13 +00:00
Make sure to always convert to plain bitmap.
This commit is contained in:
parent
7574fe4c26
commit
b4ef9e6a01
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,11 @@ void TextureChooser::onCurrentRowChanged( int row )
|
||||||
NLMISC::CBitmap bm;
|
NLMISC::CBitmap bm;
|
||||||
uint8 depth = bm.load( f );
|
uint8 depth = bm.load( f );
|
||||||
f.close();
|
f.close();
|
||||||
|
b = bm.convertToType( NLMISC::CBitmap::RGBA );
|
||||||
|
if( !b )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint32 size = bm.getSize() * ( 32 / 8 ); // should be depth, but CBitmap always uses 32 bit to store the image
|
uint32 size = bm.getSize() * ( 32 / 8 ); // should be depth, but CBitmap always uses 32 bit to store the image
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue