diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-03-14 12:03:14 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-03-14 12:03:14 -0400 |
commit | 13705596af001078d185dfe5aa7e98d9642f8c8a (patch) | |
tree | 7731814de2a2d988ba1c4ce2031b4a7f663f28b4 /indra/llprimitive/lltextureentry.cpp | |
parent | 8903578344987432cebc46d889b94574bc005007 (diff) | |
parent | b7635b6112b7c7fd448aa4400bba2edbf15a5b0a (diff) |
Automated merge up from viewer-development into mesh-development
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
-rw-r--r-- | indra/llprimitive/lltextureentry.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp index 861bde5c89..34eff17519 100644 --- a/indra/llprimitive/lltextureentry.cpp +++ b/indra/llprimitive/lltextureentry.cpp @@ -423,24 +423,10 @@ S32 LLTextureEntry::setBumpShinyFullbright(U8 bump) S32 LLTextureEntry::setMediaTexGen(U8 media) { - if (mMediaFlags != media) - { - mMediaFlags = media; - - // Special code for media handling - if( hasMedia() && mMediaEntry == NULL) - { - mMediaEntry = new LLMediaEntry; - } - else if ( ! hasMedia() && mMediaEntry != NULL) - { - delete mMediaEntry; - mMediaEntry = NULL; - } - - return TEM_CHANGE_MEDIA; - } - return TEM_CHANGE_NONE; + S32 result = TEM_CHANGE_NONE; + result |= setTexGen(media & TEM_TEX_GEN_MASK); + result |= setMediaFlags(media & TEM_MEDIA_MASK); + return result; } S32 LLTextureEntry::setBumpmap(U8 bump) |