aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llimage/llimage.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/llimage/llimage.cpp
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/llimage/llimage.cpp')
-rw-r--r--linden/indra/llimage/llimage.cpp7
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.
1343BOOL LLImageFormatted::decode(LLImageRaw* raw_image,F32 decode_time, S32 first_channel, S32 max_channel) 1346BOOL 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.