Permalink
Browse files

RMSE bugfixes.

  • Loading branch information...
Shyotl committed Apr 2, 2017
1 parent 1230748 commit b24635d24e71f78af1e0bfa2a910241711604bca
Showing with 3 additions and 3 deletions.
  1. +1 −1 indra/llrender/llimagegl.cpp
  2. +1 −1 indra/newview/app_settings/settings_sh.xml
  3. +1 −1 indra/newview/llviewerwindow.cpp
@@ -2203,7 +2203,7 @@ void LLImageGL::analyzeAlpha(const void* data_in, U32 w, U32 h)
mIsMask = TRUE;
}
mMaskMidPercentile = (F32)mids / (F32)length;
mMaskMidPercentile = (F32)mids / (F32)(w * h);
mMaskRMSE = ((max-min)%255)==0 ? sqrt(sum)/255.0 : FLT_MAX;
/*std::list<std::pair<std::string,std::string> > &data = sTextureMaskMap[getTexName()];
@@ -216,7 +216,7 @@
<key>Type</key>
<string>F32</string>
<key>Value</key>
<real>0.2</real>
<real>0.18</real>
</map>
<key>SHAutoMaskMaxMid</key>
<map>
@@ -351,7 +351,7 @@ class LLDebugText
if(obj)
{
S32 te = nodep ? nodep->getLastSelectedTE() : -1;
if(te > 0)
if(te >= 0)
{
LLViewerTexture* imagep = obj->getTEImage(te);
if(imagep && imagep != (LLViewerTexture*)LLViewerFetchedTexture::sDefaultImagep.get())

0 comments on commit b24635d

Please sign in to comment.