diff options
author | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:54 -0500 |
commit | d0b03a62fd799317d5da0bd56615739ce3b5b052 (patch) | |
tree | 8bc79bbbb52e18294f62810d9fa66ce136f90e2d /linden/indra/newview/llface.cpp | |
parent | Second Life viewer sources 1.20.8 (diff) | |
download | meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.zip meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.gz meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.bz2 meta-impy-d0b03a62fd799317d5da0bd56615739ce3b5b052.tar.xz |
Second Life viewer sources 1.20.9
Diffstat (limited to '')
-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 | ||