summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexture.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-03-02 13:35:10 -0600
committerDave Parks <davep@lindenlab.com>2012-03-02 13:35:10 -0600
commitf53fa08c7069f7f604f3fcab70d65af8bb616f08 (patch)
treeccd6ee9ea9333aab8a8cadd697d488be81ca8c41 /indra/newview/llviewertexture.cpp
parent302f4085a5f9fd7b5267fd573a8e15f890cfe573 (diff)
MAINT-708 Use texture compression to minimize memory bloat (experimental)
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r--indra/newview/llviewertexture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 61236edc86..51737149ef 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -3290,10 +3290,14 @@ LLViewerMediaTexture::LLViewerMediaTexture(const LLUUID& id, BOOL usemipmaps, LL
sMediaMap.insert(std::make_pair(id, this));
mGLTexturep = gl_image ;
+
if(mGLTexturep.isNull())
{
generateGLTexture() ;
}
+
+ mGLTexturep->setAllowCompression(false);
+
mGLTexturep->setNeedsAlphaAndPickMask(FALSE) ;
mIsPlaying = FALSE ;