diff options
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llpanelface.cpp | 21 | ||||
| -rw-r--r-- | indra/newview/llviewerstatsrecorder.cpp | 1 | 
3 files changed, 21 insertions, 6 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 1b0b11298c..8d1db7b9ad 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -449,9 +449,6 @@ void LLDrawPoolBump::unbindCubeMap(LLGLSLShader* shader, S32 shader_level, S32&  	LLCubeMap* cube_map = gSky.mVOSkyp ? gSky.mVOSkyp->getCubeMap() : NULL;  	if( cube_map )  	{ -		cube_map->disable(); -		cube_map->restoreMatrix(); -  		if (!invisible && shader_level > 1)  		{  			shader->disableTexture(LLViewerShaderMgr::ENVIRONMENT_MAP, LLTexUnit::TT_CUBE_MAP); @@ -464,6 +461,8 @@ void LLDrawPoolBump::unbindCubeMap(LLGLSLShader* shader, S32 shader_level, S32&  				}  			}  		} +		cube_map->disable(); +		cube_map->restoreMatrix();  	}  	if (!LLGLSLShader::sNoFixedFunction) diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 754a13dd4c..44f45e9995 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -693,8 +693,25 @@ void LLPanelFace::getState()  					return image_format;  				}  			} func2; -			identical = LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func2, image_format ); -			mIsAlpha = image_format != GL_RGB; +			identical &= LLSelectMgr::getInstance()->getSelection()->getSelectedTEValue( &func2, image_format ); +             +            mIsAlpha = FALSE; +            switch (image_format) +            { +                case GL_RGBA: +                case GL_ALPHA: +                { +                    mIsAlpha = TRUE; +                } +                break; + +                case GL_RGB: break; +                default: +                { +                    llinfos << "Unexpected tex format in LLPanelFace...resorting to no alpha" << llendl; +                } +                break; +            }  			if(LLViewerMedia::textureHasMedia(id))  			{ diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp index 97ca08f694..728f04af78 100644 --- a/indra/newview/llviewerstatsrecorder.cpp +++ b/indra/newview/llviewerstatsrecorder.cpp @@ -258,7 +258,6 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )  	{  		llwarns << "Unable to write complete stats record to " << STATS_FILE_NAME << llendl;  	} -	fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile );  	clearStats();  }  | 
