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