summaryrefslogtreecommitdiff
path: root/indra/newview/llpolymesh.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-08-31 14:11:46 -0500
committerDave Parks <davep@lindenlab.com>2012-08-31 14:11:46 -0500
commitde1d297deaedaeff212eb2ff13ec4edef21ce633 (patch)
treecdb71f6eeeadd6a621031e85f19e9bfe36fe75d8 /indra/newview/llpolymesh.h
parentb7555a3309bda8e9689627901051aa90fcb7be34 (diff)
MAINT-1503 Disable tcmalloc and fix remaining alignment issues.
Diffstat (limited to 'indra/newview/llpolymesh.h')
-rw-r--r--indra/newview/llpolymesh.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/indra/newview/llpolymesh.h b/indra/newview/llpolymesh.h
index ffb11a3f7e..28da230541 100644
--- a/indra/newview/llpolymesh.h
+++ b/indra/newview/llpolymesh.h
@@ -400,12 +400,24 @@ protected:
// LLPolySkeletalDeformation
// A set of joint scale data for deforming the avatar mesh
//-----------------------------------------------------------------------------
+
+LL_ALIGN_PREFIX(16)
class LLPolySkeletalDistortion : public LLViewerVisualParam
{
public:
LLPolySkeletalDistortion(LLVOAvatar *avatarp);
~LLPolySkeletalDistortion();
+ void* operator new(size_t size)
+ {
+ return ll_aligned_malloc_16(size);
+ }
+
+ void operator delete(void* ptr)
+ {
+ ll_aligned_free_16(ptr);
+ }
+
// Special: These functions are overridden by child classes
LLPolySkeletalDistortionInfo* getInfo() const { return (LLPolySkeletalDistortionInfo*)mInfo; }
// This sets mInfo and calls initialization functions
@@ -426,13 +438,14 @@ public:
/*virtual*/ const LLVector4a* getNextDistortion(U32 *index, LLPolyMesh **poly_mesh){index = 0; poly_mesh = NULL; return NULL;};
protected:
+ LL_ALIGN_16(LLVector4a mDefaultVec);
+
typedef std::map<LLJoint*, LLVector3> joint_vec_map_t;
joint_vec_map_t mJointScales;
joint_vec_map_t mJointOffsets;
- LLVector4a mDefaultVec;
// Backlink only; don't make this an LLPointer.
LLVOAvatar *mAvatar;
-};
+} LL_ALIGN_POSTFIX(16);
#endif // LL_LLPOLYMESH_H