summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-03-07 17:26:43 -0600
committerDave Parks <davep@lindenlab.com>2012-03-07 17:26:43 -0600
commitcd468364a77ca184133f8c49c9042cefae5c6ce1 (patch)
tree32e8f4eb1a953123330584915555456dbf39f533 /indra/newview
parent46cff7963b1746ecde70eb6d3e46dab6b2eedf6b (diff)
MAINT-708 Don't compress UI textures. Use GL_NICEST as compression hint to avoid artifacts.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewertexture.h2
-rw-r--r--indra/newview/llviewertexturelist.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.h b/indra/newview/llviewertexture.h
index 6b1654ae87..af8afef203 100644
--- a/indra/newview/llviewertexture.h
+++ b/indra/newview/llviewertexture.h
@@ -264,6 +264,8 @@ protected:
void setTexelsPerImage();
private:
friend class LLBumpImageList;
+ friend class LLUIImageList;
+
//note: do not make this function public.
/*virtual*/ LLImageGL* getGLTexture() const ;
virtual void switchToCachedImage();
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index 089f45ca89..f1555388a2 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -1432,6 +1432,9 @@ LLUIImagePtr LLUIImageList::loadUIImage(LLViewerFetchedTexture* imagep, const st
imagep->setAddressMode(LLTexUnit::TAM_CLAMP);
+ //don't compress UI images
+ imagep->getGLTexture()->setAllowCompression(false);
+
//all UI images are non-deletable
imagep->setNoDelete();