diff options
author | McCabe Maxsted | 2010-06-23 22:01:41 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-26 19:01:36 -0500 |
commit | 0a3a986dabfd8655e1c4e2925a2252619afbc467 (patch) | |
tree | 2373df0391e2288bb2d6e1d46a79da197cbf4f65 /linden | |
parent | Cleaned up ellipses in pie menus (diff) | |
download | meta-impy-0a3a986dabfd8655e1c4e2925a2252619afbc467.zip meta-impy-0a3a986dabfd8655e1c4e2925a2252619afbc467.tar.gz meta-impy-0a3a986dabfd8655e1c4e2925a2252619afbc467.tar.bz2 meta-impy-0a3a986dabfd8655e1c4e2925a2252619afbc467.tar.xz |
Applied patch by Thickbrick Sleaford for SNOW-698: Crash when http-getting an empty texture: ERROR: doWork: ASSERT (mFormattedImage->getDataSize() > 0)
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/lltexturefetch.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/lltexturefetch.cpp b/linden/indra/newview/lltexturefetch.cpp index ebb0ee4..326a1b6 100644 --- a/linden/indra/newview/lltexturefetch.cpp +++ b/linden/indra/newview/lltexturefetch.cpp | |||
@@ -1224,14 +1224,22 @@ void LLTextureFetchWorker::callbackHttpGet(const LLChannelDescriptors& channels, | |||
1224 | mFormattedImage = NULL; // discard any previous data we had | 1224 | mFormattedImage = NULL; // discard any previous data we had |
1225 | mBufferSize = data_size; | 1225 | mBufferSize = data_size; |
1226 | } | 1226 | } |
1227 | mRequestedSize = data_size; | ||
1227 | } | 1228 | } |
1228 | else | 1229 | else |
1229 | { | 1230 | { |
1230 | // We requested data but received none (and no error), | 1231 | // We requested data but received none (and no error), |
1231 | // so presumably we have all of it | 1232 | if (mFormattedImage.notNull() && mFormattedImage->getDataSize() > 0) |
1232 | mHaveAllData = TRUE; | 1233 | { |
1234 | // but have earlier data, so presumably we have it all. | ||
1235 | mRequestedSize = 0; | ||
1236 | mHaveAllData = TRUE; | ||
1237 | } | ||
1238 | else | ||
1239 | { | ||
1240 | mRequestedSize = -1; // treat this fetch as if it failed. | ||
1241 | } | ||
1233 | } | 1242 | } |
1234 | mRequestedSize = data_size; | ||
1235 | } | 1243 | } |
1236 | else | 1244 | else |
1237 | { | 1245 | { |