diff options
author | Nicky <none@none> | 2012-07-21 13:35:14 +0200 |
---|---|---|
committer | Nicky <none@none> | 2012-07-21 13:35:14 +0200 |
commit | bef60207e309db96d1aace39c24906903ed3bdc1 (patch) | |
tree | 89b682ca5feaab847b77149d54036d0447929df6 | |
parent | e0b334c6154e87729addfb01a52bd5b4c085bf44 (diff) |
Crashfix; Guard against 0 pointer in LLRiggedVolume::update.
-rw-r--r-- | indra/newview/llvovolume.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index e99898a83c..afe62bbb2e 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4880,6 +4880,7 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std:: std::vector<LLViewerTexture*> texture_list; + if( pos && weight && dst_face.mExtents ) { LLFastTimer t(FTM_GEN_DRAW_INFO_FACE_SIZE); if (batch_textures) @@ -4976,6 +4977,7 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std:: //create vertex buffer LLVertexBuffer* buffer = NULL; + if( dst_face.mExtents ) { LLFastTimer t(FTM_GEN_DRAW_INFO_ALLOCATE); buffer = createVertexBuffer(mask, buffer_usage); |