summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lltextureentry.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2026-07-06 19:01:48 -0400
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2026-07-06 19:01:48 -0400
commit845fe1f83c4967fe1d49715d5f17b61a4adc68ee (patch)
treeaa201e6d850b9a07045de9581562d38168b2b14d /indra/llprimitive/lltextureentry.cpp
parentb55a7038511a6ed3d97e17b13c9d83bc2017ba61 (diff)
Get things working a little more consistently between BP and PBR. Also add some bias controls for the texel-to-pixel ratio based streaming.
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
-rw-r--r--indra/llprimitive/lltextureentry.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp
index 5296e86a69..2b0f989701 100644
--- a/indra/llprimitive/lltextureentry.cpp
+++ b/indra/llprimitive/lltextureentry.cpp
@@ -356,7 +356,6 @@ S32 LLTextureEntry::setScale(F32 s, F32 t)
{
mScaleS = s;
mScaleT = t;
- mMinScaleSq = -1.f; // invalidate cache for getMinScaleSq()
retval = TEM_CHANGE_TEXTURE;
}
@@ -369,7 +368,6 @@ S32 LLTextureEntry::setScaleS(F32 s)
if (mScaleS != s)
{
mScaleS = s;
- mMinScaleSq = -1.f; // invalidate cache for getMinScaleSq()
retval = TEM_CHANGE_TEXTURE;
}
return retval;
@@ -381,22 +379,11 @@ S32 LLTextureEntry::setScaleT(F32 t)
if (mScaleT != t)
{
mScaleT = t;
- mMinScaleSq = -1.f; // invalidate cache for getMinScaleSq()
retval = TEM_CHANGE_TEXTURE;
}
return retval;
}
-F32 LLTextureEntry::getMinScaleSq() const
-{
- if (mMinScaleSq < 0.f)
- {
- F32 m = llmin(fabsf(mScaleS), fabsf(mScaleT));
- mMinScaleSq = m * m;
- }
- return mMinScaleSq;
-}
-
S32 LLTextureEntry::setColor(const LLColor4 &color)
{
if (mColor != color)