summaryrefslogtreecommitdiff
path: root/indra/llimage/llimagepng.cpp
diff options
context:
space:
mode:
authorNorthspring <pantera.polnocy@phoenixviewer.com>2015-02-25 19:24:23 +0100
committerNorthspring <pantera.polnocy@phoenixviewer.com>2015-02-25 19:24:23 +0100
commit071778d75e0120495cc2a10affc7334c12380dd0 (patch)
treea800b362a8990fe4250a3a436f307d08aa8e326b /indra/llimage/llimagepng.cpp
parentaef5979bfb249db753fa31dac509437b7f7536aa (diff)
parent9b45bc992edf8d049d8a1abe2e778870a493295a (diff)
Merge
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;