summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpool.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-04-07 14:17:30 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-04-07 14:17:30 +0300
commite20aafa2fe200cecf1f4d3ae31294ba0eb5ce194 (patch)
tree0c0625e07093e673ba9133665af1686f266584ce /indra/newview/lldrawpool.cpp
parentbc7dc2f94985658595093d4619b4a0ad25f2ff37 (diff)
SL-16907 Crash at updateSkinInfoMatrixPalette #2
Diffstat (limited to 'indra/newview/lldrawpool.cpp')
-rw-r--r--indra/newview/lldrawpool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp
index 5c291b69fc..a3837fe10c 100644
--- a/indra/newview/lldrawpool.cpp
+++ b/indra/newview/lldrawpool.cpp
@@ -596,6 +596,10 @@ bool LLRenderPass::uploadMatrixPalette(LLDrawInfo& params)
//static
bool LLRenderPass::uploadMatrixPalette(LLVOAvatar* avatar, LLMeshSkinInfo* skinInfo)
{
+ if (!avatar)
+ {
+ return false;
+ }
const LLVOAvatar::MatrixPaletteCache& mpc = avatar->updateSkinInfoMatrixPalette(skinInfo);
U32 count = mpc.mMatrixPalette.size();