Fixed: Loading of some JPEG variants

--HG--
branch : develop
This commit is contained in:
kervala 2017-01-01 22:40:52 +01:00
parent 065d1dc84c
commit 1bd7e18ba7

View file

@ -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);