Merge branch 'animesh' of git://github.com/Shyotl/SingularityViewer into animesh

This commit is contained in:
Lirusaito
2019-04-28 01:21:51 -04:00
5 changed files with 14 additions and 17 deletions

View File

@@ -263,7 +263,7 @@ private:
LLPointer<LLImageFormatted> mFormattedImage; LLPointer<LLImageFormatted> mFormattedImage;
LLPointer<LLImageRaw> mRawImage, LLPointer<LLImageRaw> mRawImage,
mAuxImage; mAuxImage;
FTType mFTType; const FTType mFTType;
LLUUID mID; LLUUID mID;
LLHost mHost; LLHost mHost;
std::string mUrl; std::string mUrl;
@@ -483,7 +483,7 @@ private:
LLTextureFetch* mFetcher; LLTextureFetch* mFetcher;
LLUUID mID; LLUUID mID;
FTType mFTType; const FTType mFTType;
LLPointer<LLHTTPRetryPolicy> mFetchRetryPolicy; LLPointer<LLHTTPRetryPolicy> mFetchRetryPolicy;
U64 mMetricsStartTime; U64 mMetricsStartTime;
S32 mRequestedSize; S32 mRequestedSize;
@@ -1247,7 +1247,7 @@ bool LLTextureFetchWorker::doWork(S32 param)
{ {
if (mFTType != FTT_DEFAULT) 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(); mUrl = http_url + "/?texture_id=" + mID.asString().c_str();
LL_DEBUGS(LOG_TXT) << "Texture URL: " << mUrl << LL_ENDL; LL_DEBUGS(LOG_TXT) << "Texture URL: " << mUrl << LL_ENDL;

View File

@@ -996,10 +996,9 @@ const std::string& fttype_to_string(const FTType& fttype)
LLViewerFetchedTexture::LLViewerFetchedTexture(const LLUUID& id, FTType f_type, const LLHost& host, BOOL usemipmaps) LLViewerFetchedTexture::LLViewerFetchedTexture(const LLUUID& id, FTType f_type, const LLHost& host, BOOL usemipmaps)
: LLViewerTexture(id, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE), : LLViewerTexture(id, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE),
mTargetHost(host) mTargetHost(host), mFTType(f_type)
{ {
init(TRUE); init(TRUE);
mFTType = f_type;
if (mFTType == FTT_HOST_BAKE) if (mFTType == FTT_HOST_BAKE)
{ {
LL_WARNS() << "Unsupported fetch type " << mFTType << LL_ENDL; LL_WARNS() << "Unsupported fetch type " << mFTType << LL_ENDL;
@@ -1009,19 +1008,18 @@ LLViewerFetchedTexture::LLViewerFetchedTexture(const LLUUID& id, FTType f_type,
} }
LLViewerFetchedTexture::LLViewerFetchedTexture(const LLImageRaw* raw, FTType f_type, BOOL usemipmaps) LLViewerFetchedTexture::LLViewerFetchedTexture(const LLImageRaw* raw, FTType f_type, BOOL usemipmaps)
: LLViewerTexture(raw, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE) : LLViewerTexture(raw, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE),
mFTType(f_type)
{ {
init(TRUE); init(TRUE);
mFTType = f_type;
mGLTexturep->setNeedsAlphaAndPickMask(TRUE); mGLTexturep->setNeedsAlphaAndPickMask(TRUE);
} }
LLViewerFetchedTexture::LLViewerFetchedTexture(const std::string& url, FTType f_type, const LLUUID& id, BOOL usemipmaps) LLViewerFetchedTexture::LLViewerFetchedTexture(const std::string& url, FTType f_type, const LLUUID& id, BOOL usemipmaps)
: LLViewerTexture(id, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE), : LLViewerTexture(id, usemipmaps, f_type == FTT_DEFAULT || f_type == FTT_MAP_TILE),
mUrl(url) mUrl(url), mFTType(f_type)
{ {
init(TRUE); init(TRUE);
mFTType = f_type;
generateGLTexture(); generateGLTexture();
mGLTexturep->setNeedsAlphaAndPickMask(TRUE); mGLTexturep->setNeedsAlphaAndPickMask(TRUE);
} }
@@ -1089,7 +1087,6 @@ void LLViewerFetchedTexture::init(bool firstinit)
mKeptSavedRawImageTime = 0.f; mKeptSavedRawImageTime = 0.f;
mLastCallBackActiveTime = 0.f; mLastCallBackActiveTime = 0.f;
mForceCallbackFetch = FALSE; mForceCallbackFetch = FALSE;
mFTType = FTT_UNKNOWN;
} }
LLViewerFetchedTexture::~LLViewerFetchedTexture() LLViewerFetchedTexture::~LLViewerFetchedTexture()

View File

@@ -473,7 +473,7 @@ protected:
S8 mIsFetching; // Fetch request is active S8 mIsFetching; // Fetch request is active
bool mCanUseHTTP ; //This texture can be fetched through http if true. bool mCanUseHTTP ; //This texture can be fetched through http if true.
FTType mFTType; // What category of image is this - map tile, server bake, etc? const FTType mFTType; // What category of image is this - map tile, server bake, etc?
mutable S8 mIsMissingAsset; // True if we know that there is no image asset with this image id in the database. mutable S8 mIsMissingAsset; // True if we know that there is no image asset with this image id in the database.
typedef std::list<LLLoadedCallbackEntry*> callback_list_t; typedef std::list<LLLoadedCallbackEntry*> callback_list_t;

View File

@@ -617,12 +617,12 @@ void LLViewerTextureList::addImageToList(LLViewerFetchedTexture *image)
} }
else else
{ {
if((mImageList.insert(image)).second != true) if((mImageList.insert(image)).second != true)
{ {
LL_WARNS() << "Error happens when insert image " << image->getID() << " into mImageList!" << LL_ENDL ; LL_WARNS() << "Error happens when insert image " << image->getID() << " into mImageList!" << LL_ENDL ;
}
image->setInImageList(TRUE) ;
} }
image->setInImageList(TRUE) ;
}
} }
void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image) void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)

View File

@@ -7823,7 +7823,7 @@ Grant this request?
icon="notify.tga" icon="notify.tga"
name="ScriptTextBoxDialog" name="ScriptTextBoxDialog"
type="notify"> type="notify">
[NAME]&apos;s &apos;[TITLE]&apos; [NAME]&apos;s &apos;[TITLE]&apos; (ch[CHANNEL])
[MESSAGE] [MESSAGE]
<form name="form"> <form name="form">
<input name="message"> <input name="message">