Feature Request: Repair Uploaded by functionality
Clean up llviewertexture a bit while doing so. Sync LLImage Thanks to Cinder and the Alchemy Team for this buncha code.
This commit is contained in:
@@ -271,7 +271,7 @@ BOOL LLImageDXT::decode(LLImageRaw* raw_image, F32 time)
|
||||
|
||||
S32 width = getWidth(), height = getHeight();
|
||||
S32 ncomponents = getComponents();
|
||||
U8* data = NULL;
|
||||
U8* data = nullptr;
|
||||
if (mDiscardLevel >= 0)
|
||||
{
|
||||
data = getData() + getMipOffset(mDiscardLevel);
|
||||
@@ -332,7 +332,7 @@ BOOL LLImageDXT::encodeDXT(const LLImageRaw* raw_image, F32 time, bool explicit_
|
||||
break;
|
||||
default:
|
||||
LL_ERRS() << "LLImageDXT::encode: Unhandled channel number: " << ncomponents << LL_ENDL;
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
S32 width = raw_image->getWidth();
|
||||
@@ -371,7 +371,7 @@ BOOL LLImageDXT::encodeDXT(const LLImageRaw* raw_image, F32 time, bool explicit_
|
||||
header->maxwidth = width;
|
||||
header->maxheight = height;
|
||||
|
||||
U8* prev_mipdata = 0;
|
||||
U8* prev_mipdata = nullptr;
|
||||
w = width, h = height;
|
||||
for (S32 mip=0; mip<nmips; mip++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user