Add compression textbox. Don't compress local assets.

This commit is contained in:
Shyotl
2019-03-02 03:47:48 -06:00
parent e1cf05c327
commit 64931839cc
5 changed files with 18 additions and 242 deletions

View File

@@ -1018,6 +1018,8 @@ LLViewerFetchedTexture::LLViewerFetchedTexture(const std::string& url, FTType f_
init(TRUE);
mFTType = f_type;
generateGLTexture();
if (f_type == FTT_LOCAL_FILE)
mGLTexturep->setAllowCompression(false);
mGLTexturep->setNeedsAlphaAndPickMask(TRUE);
}