1 --- a/indra/llimage/llpngwrapper.cpp
2 +++ b/ndra/llimage/llpngwrapper.cpp
3 @@ -216,7 +216,7 @@ void LLPngWrapper::normalizeImage()
5 if (mColorType == PNG_COLOR_TYPE_GRAY && mBitDepth < 8)
7 - png_set_gray_1_2_4_to_8(mReadPngPtr);
8 + png_set_expand_gray_1_2_4_to_8(mReadPngPtr);
10 if (mColorType == PNG_COLOR_TYPE_GRAY
11 || mColorType == PNG_COLOR_TYPE_GRAY_ALPHA)
12 @@ -364,7 +364,7 @@ void LLPngWrapper::releaseResources()
14 if (mReadPngPtr || mReadInfoPtr)
16 - png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, png_infopp_NULL);
17 + png_destroy_read_struct(&mReadPngPtr, &mReadInfoPtr, NULL);
21 --- a/indra/llimage/llpngwrapper.h
22 +++ b/indra/llimage/llpngwrapper.h
24 #ifndef LL_LLPNGWRAPPER_H
25 #define LL_LLPNGWRAPPER_H
27 -#include "libpng12/png.h"
28 +#include "libpng14/png.h"