diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-20 11:52:01 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-20 11:52:01 -0500 |
commit | 003eaf41247d4e648ef3b90ff5da1cb798334df9 (patch) | |
tree | b169a622c1c67a49c1ed662a6dfd7ba483a3d74b /indra/newview/llvoavatar.cpp | |
parent | a0cff3f011cd2c55ab63d5104169953f741a85f0 (diff) | |
parent | 707fca6abad1eb322fd0204d895d465f720fba13 (diff) |
merge
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 8c1546d47f..51a78fc125 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3779,9 +3779,9 @@ U32 LLVOAvatar::renderSkinned(EAvatarRenderPass pass) LLFace* face = mDrawable->getFace(0); - bool needs_rebuild = !face || face->mVertexBuffer.isNull(); + bool needs_rebuild = !face || face->mVertexBuffer.isNull() || mDrawable->isState(LLDrawable::REBUILD_GEOMETRY); - if (needs_rebuild || mDirtyMesh || mDrawable->isState(LLDrawable::REBUILD_GEOMETRY)) + if (needs_rebuild || mDirtyMesh) { //LOD changed or new mesh created, allocate new vertex buffer if needed if (needs_rebuild || mDirtyMesh >= 2 || mVisibilityRank <= 4) { |