summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-19 18:17:18 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-12-19 18:17:18 -0500
commit9c2e0d84f84fe7c38b1e9f7a127efc540b43f5aa (patch)
tree0daaa88c45802db177e722d1c1eaf36cd86871c5 /indra/newview/lldynamictexture.h
parente62ad2bf13aa05cb19c2bd72e0d9f59117a6ec84 (diff)
SH-2789 WIP - various fixes to force 16-byte alignment
Diffstat (limited to 'indra/newview/lldynamictexture.h')
-rwxr-xr-x[-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..100755
--- 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 ];