diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp index 0e29f76..faa0afb 100644 --- a/linden/indra/newview/llviewerimagelist.cpp +++ b/linden/indra/newview/llviewerimagelist.cpp | |||
@@ -888,7 +888,24 @@ F32 LLViewerImageList::updateImagesFetchTextures(F32 max_time) | |||
888 | image_priority_list_t::iterator iter1 = mImageList.begin(); | 888 | image_priority_list_t::iterator iter1 = mImageList.begin(); |
889 | while(update_counter > 0) | 889 | while(update_counter > 0) |
890 | { | 890 | { |
891 | entries.insert(*iter1); | 891 | // added extra granularity and verbosity for crash logging during 1.19.1 RC. -Brad |
892 | if(iter1 == mImageList.end()) | ||
893 | { | ||
894 | llerrs << "DEV-12002: update_counter not calculated correctly!" << llendl; | ||
895 | } | ||
896 | |||
897 | LLPointer<LLViewerImage> const & ptr = *iter1; | ||
898 | |||
899 | LLViewerImage * img = ptr.get(); | ||
900 | |||
901 | // added extra granularity and verbosity for crash logging during 1.19.1 RC. -Brad | ||
902 | if(img == NULL) | ||
903 | { | ||
904 | llwarns << "DEV-12002: image is NULL!" << llendl; | ||
905 | } | ||
906 | |||
907 | entries.insert(img); | ||
908 | |||
892 | ++iter1; | 909 | ++iter1; |
893 | update_counter--; | 910 | update_counter--; |
894 | } | 911 | } |
@@ -1021,7 +1038,7 @@ BOOL LLViewerImageList::createUploadFile(const LLString& filename, | |||
1021 | return FALSE; | 1038 | return FALSE; |
1022 | } | 1039 | } |
1023 | 1040 | ||
1024 | if (!bmp_image->decode(raw_image)) | 1041 | if (!bmp_image->decode(raw_image, 0.0f)) |
1025 | { | 1042 | { |
1026 | return FALSE; | 1043 | return FALSE; |
1027 | } | 1044 | } |
@@ -1058,7 +1075,7 @@ BOOL LLViewerImageList::createUploadFile(const LLString& filename, | |||
1058 | return FALSE; | 1075 | return FALSE; |
1059 | } | 1076 | } |
1060 | 1077 | ||
1061 | if (!jpeg_image->decode(raw_image)) | 1078 | if (!jpeg_image->decode(raw_image, 0.0f)) |
1062 | { | 1079 | { |
1063 | return FALSE; | 1080 | return FALSE; |
1064 | } | 1081 | } |
@@ -1073,7 +1090,7 @@ BOOL LLViewerImageList::createUploadFile(const LLString& filename, | |||
1073 | return FALSE; | 1090 | return FALSE; |
1074 | } | 1091 | } |
1075 | 1092 | ||
1076 | if (!png_image->decode(raw_image)) | 1093 | if (!png_image->decode(raw_image, 0.0f)) |
1077 | { | 1094 | { |
1078 | return FALSE; | 1095 | return FALSE; |
1079 | } | 1096 | } |
@@ -1114,7 +1131,7 @@ LLPointer<LLImageJ2C> LLViewerImageList::convertToUploadFile(LLPointer<LLImageRa | |||
1114 | (raw_image->getHeight() <= LL_IMAGE_REZ_LOSSLESS_CUTOFF)) | 1131 | (raw_image->getHeight() <= LL_IMAGE_REZ_LOSSLESS_CUTOFF)) |
1115 | compressedImage->setReversible(TRUE); | 1132 | compressedImage->setReversible(TRUE); |
1116 | 1133 | ||
1117 | compressedImage->encode(raw_image); | 1134 | compressedImage->encode(raw_image, 0.0f); |
1118 | 1135 | ||
1119 | return compressedImage; | 1136 | return compressedImage; |
1120 | } | 1137 | } |