summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llprimtexturelist.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-05-30 11:02:31 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-05-30 11:02:31 -0400
commitdfdb88305e4612c54f190c1ba237bdb609224d74 (patch)
tree23f73597a41f8db0cc0c98b64255d620e931ba20 /indra/llprimitive/llprimtexturelist.cpp
parent5ed8df22cd59680a685c4ada7daa5555bf59d4fe (diff)
parent4189cb74421794ba123bf8724caa843c9d9d1c78 (diff)
Merge branch 'release/maint-b' into nat/catch-test-blown-stack.
Retargeting PR #1496 to Maint B.
Diffstat (limited to 'indra/llprimitive/llprimtexturelist.cpp')
-rw-r--r--indra/llprimitive/llprimtexturelist.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/indra/llprimitive/llprimtexturelist.cpp b/indra/llprimitive/llprimtexturelist.cpp
index ce4df843ea..011e5d5ce6 100644
--- a/indra/llprimitive/llprimtexturelist.cpp
+++ b/indra/llprimitive/llprimtexturelist.cpp
@@ -137,14 +137,7 @@ S32 LLPrimTextureList::copyTexture(const U8 index, const LLTextureEntry& te)
// we're changing an existing entry
llassert(mEntryList[index]);
delete (mEntryList[index]);
- if (&te)
- {
- mEntryList[index] = te.newCopy();
- }
- else
- {
- mEntryList[index] = LLPrimTextureList::newTextureEntry();
- }
+ mEntryList[index] = te.newCopy();
return TEM_CHANGE_TEXTURE;
}