summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpavelkproductengine <pavelkproductengine@lindenlab.com>2016-07-07 20:19:29 +0300
committerpavelkproductengine <pavelkproductengine@lindenlab.com>2016-07-07 20:19:29 +0300
commit510957673399be1a4d603bc7e5491fe27c765d8a (patch)
tree3ebf2bddb8c70a9281159699e79ce2d1ee6d1805
parent554db00bdf20692f58c3eb42b83731011e9ad119 (diff)
MAINT-6476 FIXED VOB - User can add any size image to an Outfit Gallery outfit folders
Eliminated overuse of texture memory
-rw-r--r--indra/newview/lloutfitgallery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lloutfitgallery.cpp b/indra/newview/lloutfitgallery.cpp
index 055d4dbe9f..fc736056b9 100644
--- a/indra/newview/lloutfitgallery.cpp
+++ b/indra/newview/lloutfitgallery.cpp
@@ -48,6 +48,7 @@
#include "lltexturectrl.h"
#include "llviewercontrol.h"
#include "llviewermenufile.h"
+#include "llviewertexturelist.h"
#include "llwearableitemslist.h"
static LLPanelInjector<LLOutfitGallery> t_outfit_gallery("outfit_gallery");
@@ -705,8 +706,7 @@ BOOL LLOutfitGalleryItem::handleRightMouseDown(S32 x, S32 y, MASK mask)
void LLOutfitGalleryItem::setImageAssetId(LLUUID image_asset_id)
{
mImageAssetId = image_asset_id;
- mTexturep = LLViewerTextureManager::getFetchedTexture(image_asset_id);
- mTexturep->setBoostLevel(LLGLTexture::BOOST_PREVIEW);
+ mTexturep = LLViewerTextureManager::getFetchedTexture(image_asset_id, FTT_DEFAULT, MIPMAP_YES, LLGLTexture::BOOST_NONE, LLViewerTexture::LOD_TEXTURE);
getChildView("preview_outfit")->setVisible(FALSE);
mDefaultImage = false;
}