summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-07 22:24:10 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-10-07 22:24:10 +0300
commit3ad517c6e20934932af712eec6ac50ee6cd6ac4c (patch)
tree12c9ca6da10512c471bbe0346c9e2cf3d119ab58 /indra/newview/llvovolume.cpp
parent1ff3f15203dad9b3df2282ffc9c99dc6bc2fa053 (diff)
SL-14080 Crash in updateTextureVirtualSize
LLVOVolume::updateTextures() does not check for null drawable prior to updateTextureVirtualSize
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 5dd662f03d..641adbd147 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -694,6 +694,11 @@ void LLVOVolume::updateTextureVirtualSize(bool forced)
LL_RECORD_BLOCK_TIME(FTM_VOLUME_TEXTURES);
// Update the pixel area of all faces
+ if (mDrawable.isNull())
+ {
+ return;
+ }
+
if(!forced)
{
if(!isVisible())