Make texture fetch type (mFTType) a const member variable and remove from init() call. forceRefetch was clobbering mFFType via init call and firstinit boolean is a stupid hack.
This commit is contained in:
@@ -263,7 +263,7 @@ private:
|
||||
LLPointer<LLImageFormatted> mFormattedImage;
|
||||
LLPointer<LLImageRaw> mRawImage,
|
||||
mAuxImage;
|
||||
FTType mFTType;
|
||||
const FTType mFTType;
|
||||
LLUUID mID;
|
||||
LLHost mHost;
|
||||
std::string mUrl;
|
||||
@@ -483,7 +483,7 @@ private:
|
||||
|
||||
LLTextureFetch* mFetcher;
|
||||
LLUUID mID;
|
||||
FTType mFTType;
|
||||
const FTType mFTType;
|
||||
LLPointer<LLHTTPRetryPolicy> mFetchRetryPolicy;
|
||||
U64 mMetricsStartTime;
|
||||
S32 mRequestedSize;
|
||||
@@ -1247,7 +1247,7 @@ bool LLTextureFetchWorker::doWork(S32 param)
|
||||
{
|
||||
if (mFTType != FTT_DEFAULT)
|
||||
{
|
||||
LL_WARNS(LOG_TXT) << "trying to seek a non-default texture on the sim. Bad!" << LL_ENDL;
|
||||
LL_WARNS(LOG_TXT) << "trying to seek a non-default texture on the sim. Bad! mFTType: " << mFTType << LL_ENDL;
|
||||
}
|
||||
mUrl = http_url + "/?texture_id=" + mID.asString().c_str();
|
||||
LL_DEBUGS(LOG_TXT) << "Texture URL: " << mUrl << LL_ENDL;
|
||||
|
||||
Reference in New Issue
Block a user