summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-06-01 21:30:45 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-06-01 21:30:45 -0400
commit4155301015525a242a79b9b3134e66d366bc0ebd (patch)
tree33a28e6a61ac82c1f8da4fcba4c949f7cd92c163 /indra/newview
parentfb5a29c069d27611b6328fbc313382ef0914ffe9 (diff)
Do some work on BufferArray to make it a bit less naive about
chunking data. Remove the stateful use of a seek pointer so that shared read is possible (though maybe not interesting).
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltexturefetch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index daad463e0d..e27f0aec1e 100644
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -1255,8 +1255,7 @@ bool LLTextureFetchWorker::doWork(S32 param)
{
memcpy(buffer, mFormattedImage->getData(), cur_size);
}
- mHttpBufferArray->seek(0);
- mHttpBufferArray->read((char *) buffer + cur_size, append_size);
+ mHttpBufferArray->read(0, (char *) buffer + cur_size, append_size);
// NOTE: setData releases current data and owns new data (buffer)
mFormattedImage->setData(buffer, total_size);