diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lltexturefetch.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/linden/indra/newview/lltexturefetch.cpp b/linden/indra/newview/lltexturefetch.cpp index 9399ed3..2e4283b 100644 --- a/linden/indra/newview/lltexturefetch.cpp +++ b/linden/indra/newview/lltexturefetch.cpp | |||
@@ -1341,13 +1341,13 @@ bool LLTextureFetch::createRequest(const LLString& filename, const LLUUID& id, c | |||
1341 | } | 1341 | } |
1342 | 1342 | ||
1343 | S32 desired_size; | 1343 | S32 desired_size; |
1344 | if ((desired_discard == 0) && worker && worker->mFileSize) | 1344 | if (desired_discard == 0) |
1345 | { | 1345 | { |
1346 | // if we want the entire image, and we know its size, then get it all | 1346 | // if we want the entire image, and we know its size, then get it all |
1347 | // (calcDataSizeJ2C() below makes assumptions about how the image | 1347 | // (calcDataSizeJ2C() below makes assumptions about how the image |
1348 | // was compressed - this code ensures that when we request the entire image, | 1348 | // was compressed - this code ensures that when we request the entire image, |
1349 | // we really do get it.) | 1349 | // we really do get it.) |
1350 | desired_size = worker->mFileSize; | 1350 | desired_size = MAX_IMAGE_DATA_SIZE; |
1351 | } | 1351 | } |
1352 | else if (w*h*c > 0) | 1352 | else if (w*h*c > 0) |
1353 | { | 1353 | { |
@@ -1358,17 +1358,11 @@ bool LLTextureFetch::createRequest(const LLString& filename, const LLUUID& id, c | |||
1358 | } | 1358 | } |
1359 | else | 1359 | else |
1360 | { | 1360 | { |
1361 | if (desired_discard == 0) | 1361 | desired_size = FIRST_PACKET_SIZE; |
1362 | { | 1362 | desired_discard = MAX_DISCARD_LEVEL; |
1363 | // If we want all of the image, request the maximum possible data | ||
1364 | desired_size = MAX_IMAGE_DATA_SIZE; | ||
1365 | } | ||
1366 | else | ||
1367 | { | ||
1368 | desired_size = FIRST_PACKET_SIZE; | ||
1369 | desired_discard = MAX_DISCARD_LEVEL; | ||
1370 | } | ||
1371 | } | 1363 | } |
1364 | |||
1365 | |||
1372 | if (worker) | 1366 | if (worker) |
1373 | { | 1367 | { |
1374 | if (worker->wasAborted()) | 1368 | if (worker->wasAborted()) |