diff options
Diffstat (limited to 'linden/indra/llimage/llimage.cpp')
-rw-r--r-- | linden/indra/llimage/llimage.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llimage/llimage.cpp b/linden/indra/llimage/llimage.cpp index b9bf26a..15da71a 100644 --- a/linden/indra/llimage/llimage.cpp +++ b/linden/indra/llimage/llimage.cpp | |||
@@ -144,7 +144,10 @@ U8* LLImageBase::allocateData(S32 size) | |||
144 | mData = new U8[size]; | 144 | mData = new U8[size]; |
145 | if (!mData) | 145 | if (!mData) |
146 | { | 146 | { |
147 | llerrs << "allocate image data: " << size << llendl; | 147 | //llerrs << "allocate image data: " << size << llendl; |
148 | llwarns << "allocate image data: " << size << llendl; | ||
149 | size = 0 ; | ||
150 | mWidth = mHeight = 0 ; | ||
148 | } | 151 | } |
149 | mDataSize = size; | 152 | mDataSize = size; |
150 | } | 153 | } |
@@ -1340,7 +1343,7 @@ S32 LLImageFormatted::calcDiscardLevelBytes(S32 bytes) | |||
1340 | //---------------------------------------------------------------------------- | 1343 | //---------------------------------------------------------------------------- |
1341 | 1344 | ||
1342 | // Subclasses that can handle more than 4 channels should override this function. | 1345 | // Subclasses that can handle more than 4 channels should override this function. |
1343 | BOOL LLImageFormatted::decode(LLImageRaw* raw_image,F32 decode_time, S32 first_channel, S32 max_channel) | 1346 | BOOL LLImageFormatted::decodeChannels(LLImageRaw* raw_image,F32 decode_time, S32 first_channel, S32 max_channel) |
1344 | { | 1347 | { |
1345 | llassert( (first_channel == 0) && (max_channel == 4) ); | 1348 | llassert( (first_channel == 0) && (max_channel == 4) ); |
1346 | return decode( raw_image, decode_time ); // Loads first 4 channels by default. | 1349 | return decode( raw_image, decode_time ); // Loads first 4 channels by default. |