summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-09-23 15:55:05 -0700
committerCosmic Linden <cosmic@lindenlab.com>2024-09-23 15:55:05 -0700
commit3090e018eac74d87c01c672b602cbcf63ccf450a (patch)
treef5c37205364b9bedf703950175ece538f53651e6
parentae6cfdb6ab041117f66b4a94a31a291b1f472150 (diff)
secondlife/viewer#2638: Remove pointless assert and cast
-rw-r--r--indra/newview/llviewerobject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index 86440fca48..bc6a343e89 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -5097,8 +5097,7 @@ void LLViewerObject::updateTEMaterialTextures(U8 te)
LLUUID mat_id = getRenderMaterialID(te);
if (mat == nullptr && mat_id.notNull())
{
- mat = (LLFetchedGLTFMaterial*) gGLTFMaterialList.getMaterial(mat_id);
- llassert(mat == nullptr || dynamic_cast<LLFetchedGLTFMaterial*>(gGLTFMaterialList.getMaterial(mat_id)) != nullptr);
+ mat = gGLTFMaterialList.getMaterial(mat_id);
if (mat->isFetching())
{ // material is not loaded yet, rebuild draw info when the object finishes loading
mat->onMaterialComplete([id=getID()]