summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-09-12 18:44:30 -0400
committerOz Linden <oz@lindenlab.com>2012-09-12 18:44:30 -0400
commit3f71d3b41c938fd5d433da6ca1b404586c49c401 (patch)
tree0ec16a8f4a8fed65834a0776097f074073cf0fa4 /indra/newview/lldynamictexture.h
parenta11cc73736b6824e4dc6d0a693bcfb26514b16eb (diff)
parent3a36e3c6a82462b8d01e47707391be168e739b66 (diff)
re-merge changes to disable tcmalloc
Diffstat (limited to 'indra/newview/lldynamictexture.h')
-rw-r--r--indra/newview/lldynamictexture.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/newview/lldynamictexture.h b/indra/newview/lldynamictexture.h
index e18090545d..c51e7d1e1a 100644
--- a/indra/newview/lldynamictexture.h
+++ b/indra/newview/lldynamictexture.h
@@ -36,6 +36,16 @@
class LLViewerDynamicTexture : public LLViewerTexture
{
public:
+ void* operator new(size_t size)
+ {
+ return ll_aligned_malloc_16(size);
+ }
+
+ void operator delete(void* ptr)
+ {
+ ll_aligned_free_16(ptr);
+ }
+
enum
{
LL_VIEWER_DYNAMIC_TEXTURE = LLViewerTexture::DYNAMIC_TEXTURE,
@@ -85,7 +95,7 @@ protected:
protected:
BOOL mClamp;
LLCoordGL mOrigin;
- LLCamera mCamera;
+ LL_ALIGN_16(LLCamera mCamera);
typedef std::set<LLViewerDynamicTexture*> instance_list_t;
static instance_list_t sInstances[ LLViewerDynamicTexture::ORDER_COUNT ];