summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llgltfmaterial.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-08-08 15:34:56 -0500
committerDave Parks <davep@lindenlab.com>2022-08-08 15:34:56 -0500
commit7558641610895f1192c0fefa152437524e431eb3 (patch)
tree577778988f2987dded04e14a788726b7229f5a2e /indra/llprimitive/llgltfmaterial.h
parenteeb3b4daa62d044d8fcdee1a2fa6a63c782b3229 (diff)
SL-17937 Fix for broken PBR material batching.
Diffstat (limited to 'indra/llprimitive/llgltfmaterial.h')
-rw-r--r--indra/llprimitive/llgltfmaterial.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h
index a8d5fb8e85..ab381ca55e 100644
--- a/indra/llprimitive/llgltfmaterial.h
+++ b/indra/llprimitive/llgltfmaterial.h
@@ -61,8 +61,10 @@ public:
// get a UUID based on a hash of this LLGLTFMaterial
LLUUID getHash() const
{
+ LL_PROFILE_ZONE_SCOPED_CATEGORY_TEXTURE;
LLMD5 md5;
md5.update((unsigned char*) this, sizeof(this));
+ md5.finalize();
LLUUID id;
md5.raw_digest(id.mData);
return id;