Skip to content

Commit

Permalink
Preserve ability to build with original FreeImage
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Mar 6, 2024
1 parent 9889025 commit 6078c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/src/OgreFreeImageCodec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ namespace Ogre
FIMEMORY *fiMem = FreeImage_OpenMemory( (uint8_t *)const_cast<char *>( magicNumberPtr ),
static_cast<uint32_t>( maxbytes ) );

const FIBOOL bValid = FreeImage_ValidateFromMemory( (FREE_IMAGE_FORMAT)mFreeImageType, fiMem );
const auto bValid = FreeImage_ValidateFromMemory( (FREE_IMAGE_FORMAT)mFreeImageType, fiMem );
FreeImage_CloseMemory( fiMem );

if( bValid )
Expand Down

0 comments on commit 6078c7a

Please sign in to comment.