summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-06-27 14:18:22 -0400
committerOz Linden <oz@lindenlab.com>2012-06-27 14:18:22 -0400
commit2c3e78f1f1f5851482e5e63d37af1325f3a19550 (patch)
tree1871ea15c18377defe5e20a198baf8072e791efc /indra/newview/lldynamictexture.h
parenteb03da6e993eb33e1fef9bf53268c66d325adf9a (diff)
parentc9f1b1b5113031d5879e8fcdcec263626a7d3122 (diff)
merge changes for DRTVWR-167
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 ];