diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llaudio/llaudioengine_fmodex.cpp | 2 | ||||
| -rwxr-xr-x | indra/llcommon/llapp.cpp | 2 | ||||
| -rwxr-xr-x | indra/llcommon/llerrorthread.cpp | 2 | ||||
| -rwxr-xr-x | indra/llcommon/llsys.cpp | 6 | ||||
| -rwxr-xr-x | indra/llmessage/llares.cpp | 29 | ||||
| -rwxr-xr-x | indra/llvfs/lldir_win32.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llappviewerwin32.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/lldrawpoolbump.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/lllogininstance.cpp | 31 | ||||
| -rwxr-xr-x | indra/newview/llpanelface.cpp | 15 | 
10 files changed, 73 insertions, 20 deletions
| diff --git a/indra/llaudio/llaudioengine_fmodex.cpp b/indra/llaudio/llaudioengine_fmodex.cpp index 0e789f9011..66c969d1b0 100644 --- a/indra/llaudio/llaudioengine_fmodex.cpp +++ b/indra/llaudio/llaudioengine_fmodex.cpp @@ -67,7 +67,7 @@ inline bool Check_FMOD_Error(FMOD_RESULT result, const char *string)  {  	if(result == FMOD_OK)  		return false; -	llwarns << string << " Error: " << FMOD_ErrorString(result) << llendl; +	lldebugs << string << " Error: " << FMOD_ErrorString(result) << llendl;  	return true;  } diff --git a/indra/llcommon/llapp.cpp b/indra/llcommon/llapp.cpp index c6da205815..b66fc82250 100755 --- a/indra/llcommon/llapp.cpp +++ b/indra/llcommon/llapp.cpp @@ -378,7 +378,7 @@ void LLApp::startErrorThread()  	//  	if(!mThreadErrorp)  	{ -		llinfos << "Starting error thread" << llendl; +//		llinfos << "Starting error thread" << llendl;  		mThreadErrorp = new LLErrorThread();  		mThreadErrorp->setUserData((void *) this);  		mThreadErrorp->start(); diff --git a/indra/llcommon/llerrorthread.cpp b/indra/llcommon/llerrorthread.cpp index 950fcd6e83..4a0c8ef342 100755 --- a/indra/llcommon/llerrorthread.cpp +++ b/indra/llcommon/llerrorthread.cpp @@ -106,7 +106,7 @@ void LLErrorThread::run()  	// This thread sits and waits for the sole purpose  	// of waiting for the signal/exception handlers to flag the  	// application state as APP_STATUS_ERROR. -	llinfos << "thread_error - Waiting for an error" << llendl; +	//llinfos << "thread_error - Waiting for an error" << llendl;  	S32 counter = 0;  #if !LL_WINDOWS diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp index 57a6de9060..b8e8125e68 100755 --- a/indra/llcommon/llsys.cpp +++ b/indra/llcommon/llsys.cpp @@ -1032,9 +1032,9 @@ LLMemoryInfo& LLMemoryInfo::refresh()  {  	mStatsMap = loadStatsMap(); -	LL_DEBUGS("LLMemoryInfo") << "Populated mStatsMap:\n"; -	LLSDSerialize::toPrettyXML(mStatsMap, LL_CONT); -	LL_ENDL; +//	LL_DEBUGS("LLMemoryInfo") << "Populated mStatsMap:\n"; +//	LLSDSerialize::toPrettyXML(mStatsMap, LL_CONT); +//	LL_ENDL;  	return *this;  } diff --git a/indra/llmessage/llares.cpp b/indra/llmessage/llares.cpp index 5a67035ed1..7f74247a13 100755 --- a/indra/llmessage/llares.cpp +++ b/indra/llmessage/llares.cpp @@ -99,8 +99,7 @@ void LLAres::QueryResponder::queryError(int code)  LLAres::LLAres() :      chan_(NULL), -    mInitSuccess(false), -    mListener(new LLAresListener(this)) +    mInitSuccess(false)  {  	if (ares_library_init( ARES_LIB_INIT_ALL ) != ARES_SUCCESS ||  		ares_init(&chan_) != ARES_SUCCESS) @@ -109,6 +108,8 @@ LLAres::LLAres() :  		return;  	} +	mListener = boost::shared_ptr< LLAresListener >(new LLAresListener(this)); +  	mInitSuccess = true;  } @@ -161,12 +162,26 @@ void LLAres::getSrvRecords(const std::string &name, SrvResponder *resp)  }  void LLAres::rewriteURI(const std::string &uri, UriRewriteResponder *resp) -{ -	llinfos << "Rewriting " << uri << llendl; +{	 +	if (resp && uri.size()) +	{ +		LLURI* pURI = new LLURI(uri); + +		resp->mUri = *pURI; + +		delete pURI; + +		if (!resp->mUri.scheme().size() || !resp->mUri.hostName().size()) +		{ +			return; +		} + +		//llinfos << "LLAres::rewriteURI (" << uri << ") search: '" << "_" + resp->mUri.scheme() + "._tcp." + resp->mUri.hostName() << "'" << llendl; -	resp->mUri = LLURI(uri); -	search("_" + resp->mUri.scheme() + "._tcp." + resp->mUri.hostName(), -		   RES_SRV, resp); +		search("_" + resp->mUri.scheme() + "._tcp." + resp->mUri.hostName(), RES_SRV, resp); + +		 +	}  }  LLQueryResponder::LLQueryResponder() diff --git a/indra/llvfs/lldir_win32.cpp b/indra/llvfs/lldir_win32.cpp index 462d1cce06..6184095957 100755 --- a/indra/llvfs/lldir_win32.cpp +++ b/indra/llvfs/lldir_win32.cpp @@ -131,7 +131,7 @@ LLDir_Win32::LLDir_Win32()  		mAppRODataDir = mExecutableDir;  	} -	llinfos << "mAppRODataDir = " << mAppRODataDir << llendl; +//	llinfos << "mAppRODataDir = " << mAppRODataDir << llendl;  	mSkinBaseDir = mAppRODataDir + mDirDelimiter + "skins"; diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp index 0ba3669487..2a7656ae0a 100755 --- a/indra/newview/llappviewerwin32.cpp +++ b/indra/newview/llappviewerwin32.cpp @@ -490,7 +490,7 @@ bool LLAppViewerWin32::init()  	// (Don't send our data to Microsoft--at least until we are Logo approved and have a way  	// of getting the data back from them.)  	// -	llinfos << "Turning off Windows error reporting." << llendl; +	// llinfos << "Turning off Windows error reporting." << llendl;  	disableWinErrorReporting();  #ifndef LL_RELEASE_FOR_DOWNLOAD diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index cbd65a88e7..29076de54b 100755 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -921,6 +921,8 @@ void LLBumpImageList::init()  	llassert( mDarknessEntries.size() == 0 );  	LLStandardBumpmap::init(); + +	LLStandardBumpmap::restoreGL();  }  void LLBumpImageList::clear() diff --git a/indra/newview/lllogininstance.cpp b/indra/newview/lllogininstance.cpp index 977c50682f..f681c12747 100755 --- a/indra/newview/lllogininstance.cpp +++ b/indra/newview/lllogininstance.cpp @@ -642,6 +642,8 @@ bool LLLoginInstance::handleLoginEvent(const LLSD& event)  void LLLoginInstance::handleLoginFailure(const LLSD& event)  { +	 +  	// Login has failed.   	// Figure out why and respond...  	LLSD response = event["data"]; @@ -654,10 +656,13 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)  	// to reconnect or to end the attempt in failure.  	if(reason_response == "tos")  	{ +		llinfos << "LLLoginInstance::handleLoginFailure ToS" << llendl; +  		LLSD data(LLSD::emptyMap());  		data["message"] = message_response;  		data["reply_pump"] = TOS_REPLY_PUMP; -		gViewerWindow->setShowProgress(FALSE); +		if (gViewerWindow) +			gViewerWindow->setShowProgress(FALSE);  		LLFloaterReg::showInstance("message_tos", data);  		LLEventPumps::instance().obtain(TOS_REPLY_PUMP)  			.listen(TOS_LISTENER_NAME, @@ -666,6 +671,8 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)  	}  	else if(reason_response == "critical")  	{ +		llinfos << "LLLoginInstance::handleLoginFailure Crit" << llendl; +  		LLSD data(LLSD::emptyMap());  		data["message"] = message_response;  		data["reply_pump"] = TOS_REPLY_PUMP; @@ -678,7 +685,9 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)  			data["certificate"] = response["certificate"];  		} -		gViewerWindow->setShowProgress(FALSE); +		if (gViewerWindow) +			gViewerWindow->setShowProgress(FALSE); +  		LLFloaterReg::showInstance("message_critical", data);  		LLEventPumps::instance().obtain(TOS_REPLY_PUMP)  			.listen(TOS_LISTENER_NAME, @@ -687,21 +696,28 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)  	}  	else if(reason_response == "update" || gSavedSettings.getBOOL("ForceMandatoryUpdate"))  	{ +		llinfos << "LLLoginInstance::handleLoginFailure update" << llendl; +  		gSavedSettings.setBOOL("ForceMandatoryUpdate", FALSE);  		updateApp(true, message_response);  	}  	else if(reason_response == "optional")  	{ +		llinfos << "LLLoginInstance::handleLoginFailure optional" << llendl; +  		updateApp(false, message_response);  	}  	else  	{	 +		llinfos << "LLLoginInstance::handleLoginFailure attemptComplete" << llendl;  		attemptComplete();  	}	  }  void LLLoginInstance::handleLoginSuccess(const LLSD& event)  { +	llinfos << "LLLoginInstance::handleLoginSuccess" << llendl; +  	if(gSavedSettings.getBOOL("ForceMandatoryUpdate"))  	{  		LLSD response = event["data"]; @@ -723,6 +739,8 @@ void LLLoginInstance::handleLoginSuccess(const LLSD& event)  void LLLoginInstance::handleDisconnect(const LLSD& event)  {      // placeholder + +	llinfos << "LLLoginInstance::handleDisconnect placeholder " << llendl;  }  void LLLoginInstance::handleIndeterminate(const LLSD& event) @@ -731,10 +749,13 @@ void LLLoginInstance::handleIndeterminate(const LLSD& event)  	// gave the viewer a new url and params to try.  	// The login module handles the retry, but it gives us the  	// server response so that we may show -	// the user some status. +	// the user some status.	 +  	LLSD message = event.get("data").get("message");  	if(message.isDefined())  	{ +		llinfos << "LLLoginInstance::handleIndeterminate " << message.asString() << llendl; +  		LLSD progress_update;  		progress_update["desc"] = message;  		LLEventPumps::getInstance()->obtain("LLProgressView").post(progress_update); @@ -745,12 +766,16 @@ bool LLLoginInstance::handleTOSResponse(bool accepted, const std::string& key)  {  	if(accepted)  	{	 +		llinfos << "LLLoginInstance::handleTOSResponse: accepted" << llendl; +  		// Set the request data to true and retry login.  		mRequestData["params"][key] = true;   		reconnect();  	}  	else  	{ +		llinfos << "LLLoginInstance::handleTOSResponse: attemptComplete" << llendl; +  		attemptComplete();  	} diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index b7dc838601..2691b4fd5d 100755 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -960,11 +960,11 @@ void LLPanelFace::updateUI()  				}  			} -         if (shinytexture_ctrl && !shinytexture_ctrl->isPickerShown()) +         if (shinytexture_ctrl)           {  				// Can't use this test as we can't actually store SHINY_TEXTURE in the TEs *sigh*  				// -				if (identical_spec /*&& (shiny == SHINY_TEXTURE)*/) +				if (identical_spec && (shiny == SHINY_TEXTURE))  				{  					shinytexture_ctrl->setTentative( FALSE );  					shinytexture_ctrl->setEnabled( editable ); @@ -2041,6 +2041,17 @@ void LLPanelFace::onCommitMaterialType(LLUICtrl* ctrl, void* userdata)      // like the texture ctrls for diffuse/norm/spec so that they are correct      // when switching modes      // + +	 LLTextureCtrl* texture_ctrl = self->getChild<LLTextureCtrl>("shinytexture control"); +	 if (texture_ctrl) +		 texture_ctrl->clear(); + +	 texture_ctrl = self->getChild<LLTextureCtrl>("bumpytexture control"); +	 if (texture_ctrl) +		 texture_ctrl->clear(); + +	 self->updateShinyControls(false,true); +	 self->updateBumpyControls(false,true);      self->updateUI();  } | 
