diff options
Diffstat (limited to 'linden/indra/newview/lltexturecache.cpp')
-rw-r--r-- | linden/indra/newview/lltexturecache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/lltexturecache.cpp b/linden/indra/newview/lltexturecache.cpp index 2e7d585..5dc1018 100644 --- a/linden/indra/newview/lltexturecache.cpp +++ b/linden/indra/newview/lltexturecache.cpp | |||
@@ -250,9 +250,9 @@ bool LLTextureCacheLocalFileWorker::doRead() | |||
250 | } | 250 | } |
251 | } | 251 | } |
252 | #else | 252 | #else |
253 | if (!mDataSize || mDataSize > local_size) | 253 | if (!mDataSize || mDataSize + mOffset > local_size) |
254 | { | 254 | { |
255 | mDataSize = local_size; | 255 | mDataSize = local_size - mOffset; |
256 | } | 256 | } |
257 | mReadData = new U8[mDataSize]; | 257 | mReadData = new U8[mDataSize]; |
258 | 258 | ||