mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Fixed: Loading of some JPEG variants
This commit is contained in:
parent
d823fe8312
commit
753b429950
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ uint8 CBitmap::load(NLMISC::IStream &f, uint mipMapSkip)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_JPEG
|
#ifdef USE_JPEG
|
||||||
if (fileType == JPG_HEADER)
|
// only compare fist word
|
||||||
|
if (memcmp(&fileType, &JPG_HEADER, 2) == 0)
|
||||||
{
|
{
|
||||||
#ifdef NEL_ALL_BITMAP_WHITE
|
#ifdef NEL_ALL_BITMAP_WHITE
|
||||||
uint8 result = readJPG(f);
|
uint8 result = readJPG(f);
|
||||||
|
|
Loading…
Reference in a new issue