diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-12-14 16:18:19 -0500 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2011-12-14 16:18:19 -0500 |
commit | e68d5e248f73180def7c8928b32482347dd91de4 (patch) | |
tree | 9fcc551a62bf83c00ccbd77dc262a48cad068729 /indra/newview/llspatialpartition.cpp | |
parent | dbc91a7fac9513bdd879c5c2dc82208e08eaad2d (diff) |
SH-2789 WIP - add asserts to check object address alignment where needed
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llspatialpartition.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 3e16ccf3da..a8b5ee47d1 100644..100755 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -546,6 +546,7 @@ void LLSpatialGroup::setVisible() void LLSpatialGroup::validate() { + ll_assert_aligned(this,64); #if LL_OCTREE_PARANOIA_CHECK sg_assert(!isState(DIRTY)); @@ -1195,6 +1196,8 @@ LLSpatialGroup::LLSpatialGroup(OctreeNode* node, LLSpatialPartition* part) : mCurUpdatingSlotp(NULL), mCurUpdatingTexture (NULL) { + ll_assert_aligned(this,64); + sNodeCount++; LLMemType mt(LLMemType::MTYPE_SPACE_PARTITION); |