diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-06-15 12:04:09 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-06-15 12:04:09 -0400 | 
| commit | f0694e45c8d140bd93abe097ec8e8cc99630ed39 (patch) | |
| tree | 89f640b04e5b06f101bec0eb396acf9a53655a83 /indra | |
| parent | b779112256eb2dcf617d596a634a51150c5ed7f9 (diff) | |
| parent | 75bdb77c245109f7d72bb8fb034184b4d26cff50 (diff) | |
merge changes for storm-1298
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llviewertexturelist.cpp | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 1ffae7ce83..a1d9434d44 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -281,6 +281,8 @@ void LLViewerTextureList::shutdown()  	mUUIDMap.clear();  	mImageList.clear(); + +	mInitialized = FALSE ; //prevent loading textures again.  }  void LLViewerTextureList::dump() @@ -328,6 +330,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromFile(const std::string&  												   LLGLenum primary_format,   												   const LLUUID& force_id)  { +	if(!mInitialized) +	{ +		return NULL ; +	} +  	std::string full_path = gDirUtilp->findSkinnedFilename("textures", filename);  	if (full_path.empty())  	{ @@ -348,6 +355,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromUrl(const std::string&  												   LLGLenum primary_format,   												   const LLUUID& force_id)  { +	if(!mInitialized) +	{ +		return NULL ; +	} +  	// generate UUID based on hash of filename  	LLUUID new_id;  	if (force_id.notNull()) @@ -407,6 +419,11 @@ LLViewerFetchedTexture* LLViewerTextureList::getImage(const LLUUID &image_id,  												   LLGLenum primary_format,  												   LLHost request_from_host)  { +	if(!mInitialized) +	{ +		return NULL ; +	} +  	// Return the image with ID image_id  	// If the image is not found, creates new image and  	// enqueues a request for transmission  | 
