aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltexlayer.cpp26
1 files changed, 6 insertions, 20 deletions
diff --git a/linden/indra/newview/lltexlayer.cpp b/linden/indra/newview/lltexlayer.cpp
index fb5be84..5175cbb 100644
--- a/linden/indra/newview/lltexlayer.cpp
+++ b/linden/indra/newview/lltexlayer.cpp
@@ -813,19 +813,14 @@ void LLTexLayerSet::requestUpdate()
813 if( mUpdatesEnabled ) 813 if( mUpdatesEnabled )
814 { 814 {
815 createComposite(); 815 createComposite();
816 if (mComposite) 816 mComposite->requestUpdate();
817 {
818 mComposite->requestUpdate();
819 }
820 } 817 }
821} 818}
822 819
823void LLTexLayerSet::requestUpload() 820void LLTexLayerSet::requestUpload()
824{ 821{
825 if (mComposite) 822 createComposite();
826 { 823 mComposite->requestUpload();
827 mComposite->requestUpload();
828 }
829} 824}
830 825
831void LLTexLayerSet::cancelUpload() 826void LLTexLayerSet::cancelUpload()
@@ -840,15 +835,6 @@ void LLTexLayerSet::createComposite()
840{ 835{
841 if( !mComposite ) 836 if( !mComposite )
842 { 837 {
843 gPipeline.markGLRebuild(this);
844 }
845 //updateGL(); // KL
846}
847
848void LLTexLayerSet::updateGL()
849{
850 if (!mComposite)
851 {
852 S32 width = mInfo->mWidth; 838 S32 width = mInfo->mWidth;
853 S32 height = mInfo->mHeight; 839 S32 height = mInfo->mHeight;
854 // Composite other avatars at reduced resolution 840 // Composite other avatars at reduced resolution
@@ -879,7 +865,7 @@ void LLTexLayerSet::setUpdatesEnabled( BOOL b )
879void LLTexLayerSet::updateComposite() 865void LLTexLayerSet::updateComposite()
880{ 866{
881 createComposite(); 867 createComposite();
882 //mComposite->updateImmediate(); //KL exception here this needs fixing for S19 868 mComposite->updateImmediate();
883} 869}
884 870
885LLTexLayerSetBuffer* LLTexLayerSet::getComposite() 871LLTexLayerSetBuffer* LLTexLayerSet::getComposite()
@@ -2118,7 +2104,7 @@ BOOL LLTexLayerParamAlpha::render( S32 x, S32 y, S32 width, S32 height )
2118 // 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.
2119 if( mNeedsCreateTexture ) 2105 if( mNeedsCreateTexture )
2120 { 2106 {
2121 mCachedProcessedImageGL->createGLTexture(0, mStaticImageRaw, 0); 2107 mCachedProcessedImageGL->createGLTexture(0, mStaticImageRaw, 0, TRUE, LLViewerImageBoostLevel::TEXLAYER_CACHE);
2122 mNeedsCreateTexture = FALSE; 2108 mNeedsCreateTexture = FALSE;
2123 gGL.getTexUnit(0)->bind(mCachedProcessedImageGL); 2109 gGL.getTexUnit(0)->bind(mCachedProcessedImageGL);
2124 mCachedProcessedImageGL->setAddressMode(LLTexUnit::TAM_CLAMP); 2110 mCachedProcessedImageGL->setAddressMode(LLTexUnit::TAM_CLAMP);
@@ -2574,7 +2560,7 @@ LLImageGL* LLTexStaticImageList::getImageGL(const std::string& file_name, BOOL i
2574 image_gl->setExplicitFormat( GL_ALPHA8, GL_ALPHA ); 2560 image_gl->setExplicitFormat( GL_ALPHA8, GL_ALPHA );
2575 } 2561 }
2576 2562
2577 image_gl->createGLTexture(0, image_raw, 0); 2563 image_gl->createGLTexture(0, image_raw, 0, TRUE, LLViewerImageBoostLevel::OTHER);
2578 2564
2579 gGL.getTexUnit(0)->bind(image_gl); 2565 gGL.getTexUnit(0)->bind(image_gl);
2580 image_gl->setAddressMode(LLTexUnit::TAM_CLAMP); 2566 image_gl->setAddressMode(LLTexUnit::TAM_CLAMP);