diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-06-01 21:30:45 -0400 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-06-01 21:30:45 -0400 |
commit | 4155301015525a242a79b9b3134e66d366bc0ebd (patch) | |
tree | 33a28e6a61ac82c1f8da4fcba4c949f7cd92c163 /indra/newview | |
parent | fb5a29c069d27611b6328fbc313382ef0914ffe9 (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.cpp | 3 |
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); |