aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/newview/lltexlayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/lltexlayer.cpp b/linden/indra/newview/lltexlayer.cpp
index ec63c8c..5175cbb 100644
--- a/linden/indra/newview/lltexlayer.cpp
+++ b/linden/indra/newview/lltexlayer.cpp
@@ -2104,7 +2104,7 @@ BOOL LLTexLayerParamAlpha::render( S32 x, S32 y, S32 width, S32 height )
2104 // Create the GL texture, and then hang onto it for future use. 2104 // Create the GL texture, and then hang onto it for future use.
2105 if( mNeedsCreateTexture ) 2105 if( mNeedsCreateTexture )
2106 { 2106 {
2107 mCachedProcessedImageGL->createGLTexture(0, mStaticImageRaw); 2107 mCachedProcessedImageGL->createGLTexture(0, mStaticImageRaw, 0, TRUE, LLViewerImageBoostLevel::TEXLAYER_CACHE);
2108 mNeedsCreateTexture = FALSE; 2108 mNeedsCreateTexture = FALSE;
2109 gGL.getTexUnit(0)->bind(mCachedProcessedImageGL); 2109 gGL.getTexUnit(0)->bind(mCachedProcessedImageGL);
2110 mCachedProcessedImageGL->setAddressMode(LLTexUnit::TAM_CLAMP); 2110 mCachedProcessedImageGL->setAddressMode(LLTexUnit::TAM_CLAMP);
@@ -2559,7 +2559,8 @@ LLImageGL* LLTexStaticImageList::getImageGL(const std::string& file_name, BOOL i
2559 // that once an image is a mask it's always a mask. 2559 // that once an image is a mask it's always a mask.
2560 image_gl->setExplicitFormat( GL_ALPHA8, GL_ALPHA ); 2560 image_gl->setExplicitFormat( GL_ALPHA8, GL_ALPHA );
2561 } 2561 }
2562 image_gl->createGLTexture(0, image_raw); 2562
2563 image_gl->createGLTexture(0, image_raw, 0, TRUE, LLViewerImageBoostLevel::OTHER);
2563 2564
2564 gGL.getTexUnit(0)->bind(image_gl); 2565 gGL.getTexUnit(0)->bind(image_gl);
2565 image_gl->setAddressMode(LLTexUnit::TAM_CLAMP); 2566 image_gl->setAddressMode(LLTexUnit::TAM_CLAMP);