diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-03-15 09:26:38 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-03-15 09:26:38 -0400 | 
| commit | ae3e97024ec60d2c0555bf01ff6e2786232b6dd5 (patch) | |
| tree | c3469e40b8ae0edc3b8695a346942d3897666115 /indra | |
| parent | 845405cce6e432c60f1733e7b8d529682a107a86 (diff) | |
| parent | 2c0f97ea392e770cc459b7b7974e9adad2249c87 (diff) | |
merge changes for storm-1021
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/cmake/FindLLQtWebkit.cmake | 4 | ||||
| -rw-r--r-- | indra/llprimitive/lltextureentry.cpp | 22 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 1 | ||||
| -rw-r--r-- | indra/newview/lltexturecache.cpp | 19 | ||||
| -rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/viewer_manifest.py | 2 | 
6 files changed, 18 insertions, 32 deletions
| diff --git a/indra/cmake/FindLLQtWebkit.cmake b/indra/cmake/FindLLQtWebkit.cmake index c747ec32a2..4bf5f5cb73 100644 --- a/indra/cmake/FindLLQtWebkit.cmake +++ b/indra/cmake/FindLLQtWebkit.cmake @@ -22,9 +22,9 @@ if (PKG_CONFIG_FOUND)      else (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)          set(_PACKAGE_ARGS libllqtwebkit)      endif (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION) -    if (NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_LESS "2.8") +    if (NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_LESS "2.8.2")        # As virtually nobody will have a pkg-config file for this, do this check always quiet. -      # Unfortunately cmake 2.8 or higher is required for pkg_check_modules to have a 'QUIET'. +      # Unfortunately cmake 2.8.2 or higher is required for pkg_check_modules to have a 'QUIET'.        set(_PACKAGE_ARGS ${_PACKAGE_ARGS} QUIET)      endif ()      pkg_check_modules(LLQTWEBKIT ${_PACKAGE_ARGS}) diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp index 861bde5c89..34eff17519 100644 --- a/indra/llprimitive/lltextureentry.cpp +++ b/indra/llprimitive/lltextureentry.cpp @@ -423,24 +423,10 @@ S32 LLTextureEntry::setBumpShinyFullbright(U8 bump)  S32 LLTextureEntry::setMediaTexGen(U8 media)  { -	if (mMediaFlags != media) -	{ -		mMediaFlags = media; - -		// Special code for media handling -		if( hasMedia() && mMediaEntry == NULL) -		{ -			mMediaEntry = new LLMediaEntry; -		} -        else if ( ! hasMedia() && mMediaEntry != NULL) -        { -            delete mMediaEntry; -            mMediaEntry = NULL; -        } - -		return TEM_CHANGE_MEDIA; -	} -	return TEM_CHANGE_NONE; +	S32 result = TEM_CHANGE_NONE; +	result |= setTexGen(media & TEM_TEX_GEN_MASK); +	result |= setMediaFlags(media & TEM_MEDIA_MASK); +	return result;  }  S32 LLTextureEntry::setBumpmap(U8 bump) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 0eac7d5e2a..f8f9f3ab86 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -775,6 +775,7 @@ bool idle_startup()  		gViewerWindow->setNormalControlsVisible( FALSE );	  		gLoginMenuBarView->setVisible( TRUE );  		gLoginMenuBarView->setEnabled( TRUE ); +		show_debug_menus();  		// Hide the splash screen  		LLSplashScreen::hide(); diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index f54214b95c..7fb52c1939 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1419,22 +1419,21 @@ void LLTextureCache::readHeaderCache()  					}  				}  			} -			if (num_entries > sCacheMaxEntries) +			if (num_entries - empty_entries > sCacheMaxEntries)  			{  				// Special case: cache size was reduced, need to remove entries  				// Note: After we prune entries, we will call this again and create the LRU -				U32 entries_to_purge = (num_entries-empty_entries) - sCacheMaxEntries; +				U32 entries_to_purge = (num_entries - empty_entries) - sCacheMaxEntries;  				llinfos << "Texture Cache Entries: " << num_entries << " Max: " << sCacheMaxEntries << " Empty: " << empty_entries << " Purging: " << entries_to_purge << llendl; -				if (entries_to_purge > 0) +				// We can exit the following loop with the given condition, since if we'd reach the end of the lru set we'd have: +				// purge_list.size() = lru.size() = num_entries - empty_entries = entries_to_purge + sCacheMaxEntries >= entries_to_purge +				// So, it's certain that iter will never reach lru.end() first. +				std::set<lru_data_t>::iterator iter = lru.begin(); +				while (purge_list.size() < entries_to_purge)  				{ -					for (std::set<lru_data_t>::iterator iter = lru.begin(); iter != lru.end(); ++iter) -					{ -						purge_list.insert(iter->second); -						if (purge_list.size() >= entries_to_purge) -							break; -					} +					purge_list.insert(iter->second); +					++iter;  				} -				llassert_always(purge_list.size() >= entries_to_purge);  			}  			else  			{ diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 81479e8b49..979d91cfcb 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1180,6 +1180,7 @@ void LLViewerObjectList::clearAllMapObjectsInRegion(LLViewerRegion* regionp)  	}  } +  void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)  {  	LLColor4 above_water_color = LLUIColorTable::instance().getColor( "NetMapOtherOwnAboveWater" ); @@ -1199,7 +1200,6 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)  	{  		LLViewerObject* objectp = *iter; -		//llassert_always(!objectp->isDead());  		if(objectp->isDead())//some dead objects somehow not cleaned.  		{  			continue ; diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index 1722c84d34..4c4b90855c 100644 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -803,7 +803,7 @@ class DarwinManifest(ViewerManifest):                  self.run_command('SetFile -a V %r' % pathname)              # Create the alias file (which is a resource file) from the .r -            self.run_command('rez %r -o %r' % +            self.run_command('Rez %r -o %r' %                               (self.src_path_of("installers/darwin/release-dmg/Applications-alias.r"),                                os.path.join(volpath, "Applications"))) | 
