diff options
Diffstat (limited to 'linden/indra/newview/llface.cpp')
-rw-r--r-- | linden/indra/newview/llface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llface.cpp b/linden/indra/newview/llface.cpp index 3e0c5b2..77251ce 100644 --- a/linden/indra/newview/llface.cpp +++ b/linden/indra/newview/llface.cpp | |||
@@ -57,6 +57,7 @@ | |||
57 | extern BOOL gPickFaces; | 57 | extern BOOL gPickFaces; |
58 | 58 | ||
59 | BOOL LLFace::sSafeRenderSelect = TRUE; // FALSE | 59 | BOOL LLFace::sSafeRenderSelect = TRUE; // FALSE |
60 | S32 LLFace::sDeleteLock = 0 ; | ||
60 | 61 | ||
61 | #define DOTVEC(a,b) (a.mV[0]*b.mV[0] + a.mV[1]*b.mV[1] + a.mV[2]*b.mV[2]) | 62 | #define DOTVEC(a,b) (a.mV[0]*b.mV[0] + a.mV[1]*b.mV[1] + a.mV[2]*b.mV[2]) |
62 | 63 | ||
@@ -177,6 +178,9 @@ void LLFace::init(LLDrawable* drawablep, LLViewerObject* objp) | |||
177 | 178 | ||
178 | void LLFace::destroy() | 179 | void LLFace::destroy() |
179 | { | 180 | { |
181 | llassert_always(sDeleteLock >= 1); | ||
182 | --sDeleteLock; | ||
183 | |||
180 | mDrawablep = NULL; | 184 | mDrawablep = NULL; |
181 | mVObjp = NULL; | 185 | mVObjp = NULL; |
182 | 186 | ||