diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/lldrawpooltree.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/newview/lldrawpooltree.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpooltree.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/newview/lldrawpooltree.cpp b/linden/indra/newview/lldrawpooltree.cpp index fd178dc..40ba54a 100644 --- a/linden/indra/newview/lldrawpooltree.cpp +++ b/linden/indra/newview/lldrawpooltree.cpp | |||
@@ -50,7 +50,7 @@ LLDrawPoolTree::LLDrawPoolTree(LLViewerImage *texturep) : | |||
50 | LLFacePool(POOL_TREE), | 50 | LLFacePool(POOL_TREE), |
51 | mTexturep(texturep) | 51 | mTexturep(texturep) |
52 | { | 52 | { |
53 | mTexturep->bind(0); | 53 | gGL.getTexUnit(0)->bind(mTexturep.get()); |
54 | mTexturep->setClamp(FALSE, FALSE); | 54 | mTexturep->setClamp(FALSE, FALSE); |
55 | } | 55 | } |
56 | 56 | ||
@@ -124,6 +124,7 @@ void LLDrawPoolTree::renderForSelect() | |||
124 | LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); | 124 | LLOverrideFaceColor color(this, 1.f, 1.f, 1.f, 1.f); |
125 | 125 | ||
126 | LLGLSObjectSelectAlpha gls_alpha; | 126 | LLGLSObjectSelectAlpha gls_alpha; |
127 | gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); | ||
127 | 128 | ||
128 | gGL.setSceneBlendType(LLRender::BT_REPLACE); | 129 | gGL.setSceneBlendType(LLRender::BT_REPLACE); |
129 | gGL.setAlphaRejectSettings(LLRender::CF_GREATER, 0.5f); | 130 | gGL.setAlphaRejectSettings(LLRender::CF_GREATER, 0.5f); |
@@ -144,7 +145,7 @@ void LLDrawPoolTree::renderTree(BOOL selecting) | |||
144 | LLGLState normalize(GL_NORMALIZE, TRUE); | 145 | LLGLState normalize(GL_NORMALIZE, TRUE); |
145 | 146 | ||
146 | // Bind the texture for this tree. | 147 | // Bind the texture for this tree. |
147 | LLViewerImage::bindTexture(mTexturep,sDiffTex); | 148 | gGL.getTexUnit(sDiffTex)->bind(mTexturep.get()); |
148 | 149 | ||
149 | U32 indices_drawn = 0; | 150 | U32 indices_drawn = 0; |
150 | 151 | ||