summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 64edcecdc6..bb76957da1 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -711,11 +711,13 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
const LLVolumeFace &face = volume.getVolumeFace(f);
//get bounding box
- if (mDrawablep->isState(LLDrawable::REBUILD_ALL))
+ if (mDrawablep->isState(LLDrawable::REBUILD_VOLUME | LLDrawable::REBUILD_POSITION))
{
- //vertex buffer no longer valid
- mVertexBuffer = NULL;
- mLastVertexBuffer = NULL;
+ if (mDrawablep->isState(LLDrawable::REBUILD_VOLUME))
+ { //vertex buffer no longer valid
+ mVertexBuffer = NULL;
+ mLastVertexBuffer = NULL;
+ }
LLVector3 min,max;