summaryrefslogtreecommitdiff
path: root/indra/llimage/llimagepng.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2015-02-27 09:03:04 -0500
committerOz Linden <oz@lindenlab.com>2015-02-27 09:03:04 -0500
commit83851db09ab0fecbb6722826055a55844fd98ea6 (patch)
treeb3c73b1dec463e4d8a8a315f1d713a83e119d99b /indra/llimage/llimagepng.cpp
parentbdb42b4c716a374ab7a7b54a630ed5b5a481cdb2 (diff)
parentd4a2e9fd9a0e7001a6c824ddd6cf37039a632b9d (diff)
merge up to 3.7.25-release
Diffstat (limited to 'indra/llimage/llimagepng.cpp')
-rwxr-xr-xindra/llimage/llimagepng.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llimage/llimagepng.cpp b/indra/llimage/llimagepng.cpp
index 294f68b122..7735dc1379 100755
--- a/indra/llimage/llimagepng.cpp
+++ b/indra/llimage/llimagepng.cpp
@@ -67,7 +67,7 @@ BOOL LLImagePNG::updateData()
}
LLPngWrapper::ImageInfo infop;
- if (! pngWrapper.readPng(getData(), NULL, &infop))
+ if (! pngWrapper.readPng(getData(), getDataSize(), NULL, &infop))
{
setLastError(pngWrapper.getErrorMessage());
return FALSE;
@@ -102,7 +102,7 @@ BOOL LLImagePNG::decode(LLImageRaw* raw_image, F32 decode_time)
return FALSE;
}
- if (! pngWrapper.readPng(getData(), raw_image))
+ if (! pngWrapper.readPng(getData(), getDataSize(), raw_image))
{
setLastError(pngWrapper.getErrorMessage());
return FALSE;