summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawable.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-08-28 09:14:29 -0700
committerGraham Linden <graham@lindenlab.com>2013-08-28 09:14:29 -0700
commitd8f700d6ac68388d021e923efa5d89e7d5852bd5 (patch)
tree63eed26bad1e432d6ee41949ea2a3c59422a1ffd /indra/newview/lldrawable.cpp
parent6e410c31c4f84247586312fa7763a2eb3a8db9da (diff)
NORSPEC-355 NORSPEC-356 replaced llerrs with asserts to avoid crashes from false alarms in release
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rwxr-xr-xindra/newview/lldrawable.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp
index 2a333157f2..9682f38227 100755
--- a/indra/newview/lldrawable.cpp
+++ b/indra/newview/lldrawable.cpp
@@ -132,10 +132,16 @@ void LLDrawable::destroy()
sNumZombieDrawables--;
}
+ // Attempt to catch violations of this in debug,
+ // knowing that some false alarms may result
+ //
+ llassert(!LLSpatialGroup::sNoDelete);
+
+ /* cannot be guaranteed and causes crashes on false alarms
if (LLSpatialGroup::sNoDelete)
{
llerrs << "Illegal deletion of LLDrawable!" << llendl;
- }
+ }*/
std::for_each(mFaces.begin(), mFaces.end(), DeletePointer());
mFaces.clear();