diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2009-10-12 05:32:52 +0000 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2009-10-12 05:32:52 +0000 |
commit | c2ddcfae49bb1b4794facd64de1c2ac62fdb5715 (patch) | |
tree | ad9b9f386a7725be892d7f221e973af97b7b2326 /indra/newview/llface.cpp | |
parent | 18f1895bf2abceadba292672eb80a384f0142c73 (diff) |
fix for EXT-1328: Alpha textures are not displayed correctly when first loaded.
to be reviewed by davep.
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r-- | indra/newview/llface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index b0ae13348b..4246cbc27f 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -280,6 +280,11 @@ void LLFace::setTexture(LLViewerTexture* tex) mTexture = tex ; } +void LLFace::dirtyTexture() +{ + gPipeline.markTextured(getDrawable()); +} + void LLFace::switchTexture(LLViewerTexture* new_texture) { if(mTexture == new_texture) @@ -295,7 +300,7 @@ void LLFace::switchTexture(LLViewerTexture* new_texture) getViewerObject()->changeTEImage(mTEOffset, new_texture) ; setTexture(new_texture) ; - gPipeline.markTextured(getDrawable()); + dirtyTexture(); } void LLFace::setTEOffset(const S32 te_offset) |