summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llgltfmaterial.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-03-22 18:25:47 -0500
committerDave Parks <davep@lindenlab.com>2023-03-22 18:25:47 -0500
commite23b3972a00370aff25d582ce33dc0db6d795213 (patch)
tree2ef6e4ecbe88a340a1bde00f8fd65d5bf29b8a0e /indra/llprimitive/llgltfmaterial.h
parentc4bc71766922c4f810e38f7dc91e521ed87fccf2 (diff)
DRTVWR-559 Fix for bad hashing of materials breaking render batches and who knows what else.
Diffstat (limited to 'indra/llprimitive/llgltfmaterial.h')
-rw-r--r--indra/llprimitive/llgltfmaterial.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index b453b91e67..a53b68a50f 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -115,14 +115,7 @@ public:
bool mOverrideAlphaMode = false;
// get a UUID based on a hash of this LLGLTFMaterial
- LLUUID getHash() const
- {
- LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE;
- // HACK - hash the bytes of this object but don't include the ref count
- LLUUID hash;
- HBXXH128::digest(hash, (unsigned char*)this + sizeof(S32), sizeof(this) - sizeof(S32));
- return hash;
- }
+ LLUUID getHash() const;
//setters for various members (will clamp to acceptable ranges)
// for_override - set to true if this value is being set as part of an override (important for handling override to default value)