summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-04-29 17:09:19 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-04-29 18:12:57 +0300
commitd9e55c44152064133796bfb08f1da524387c1300 (patch)
treedff31bea70c1cbce20f6530ef40bae0270c47555 /indra/newview
parentfdda524ee1395c7dd5d5f65ce1f61c64e256c531 (diff)
#3997 Crash in a gltf asset enabled region
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/gltfscenemanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/gltfscenemanager.cpp b/indra/newview/gltfscenemanager.cpp
index e0cd762776..9faead9533 100644
--- a/indra/newview/gltfscenemanager.cpp
+++ b/indra/newview/gltfscenemanager.cpp
@@ -643,6 +643,12 @@ void GLTFSceneManager::render(Asset& asset, U8 variant)
return;
}
+ if (gGLTFPBRMetallicRoughnessProgram.mGLTFVariants.size() <= variant)
+ {
+ llassert(false); // mGLTFVariants should have been initialized
+ return;
+ }
+
for (U32 ds = 0; ds < 2; ++ds)
{
RenderData& rd = asset.mRenderData[ds];