diff options
author | Dave Parks <davep@lindenlab.com> | 2012-03-02 13:35:10 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2012-03-02 13:35:10 -0600 |
commit | f53fa08c7069f7f604f3fcab70d65af8bb616f08 (patch) | |
tree | ccd6ee9ea9333aab8a8cadd697d488be81ca8c41 /indra/newview/llviewertexture.cpp | |
parent | 302f4085a5f9fd7b5267fd573a8e15f890cfe573 (diff) |
MAINT-708 Use texture compression to minimize memory bloat (experimental)
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 4 |
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 ; |