aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolmorph.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/lltoolmorph.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-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 '')
-rw-r--r--linden/indra/newview/lltoolmorph.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/lltoolmorph.cpp b/linden/indra/newview/lltoolmorph.cpp
index 2fbf4ae..9666e66 100644
--- a/linden/indra/newview/lltoolmorph.cpp
+++ b/linden/indra/newview/lltoolmorph.cpp
@@ -240,6 +240,7 @@ BOOL LLVisualParamHint::render()
240 } 240 }
241 avatarp->setVisualParamWeight(mVisualParam, mLastParamWeight); 241 avatarp->setVisualParamWeight(mVisualParam, mLastParamWeight);
242 gGL.color4f(1,1,1,1); 242 gGL.color4f(1,1,1,1);
243 mTexture->setInitialized(true);
243 return TRUE; 244 return TRUE;
244} 245}
245 246
@@ -251,12 +252,12 @@ void LLVisualParamHint::draw()
251{ 252{
252 if (!mIsVisible) return; 253 if (!mIsVisible) return;
253 254
254 bindTexture(); 255 gGL.getTexUnit(0)->bind(getTexture());
255 256
256 gGL.color4f(1.f, 1.f, 1.f, 1.f); 257 gGL.color4f(1.f, 1.f, 1.f, 1.f);
257 258
258 LLGLSUIDefault gls_ui; 259 LLGLSUIDefault gls_ui;
259 gGL.begin(LLVertexBuffer::QUADS); 260 gGL.begin(LLRender::QUADS);
260 { 261 {
261 gGL.texCoord2i(0, 1); 262 gGL.texCoord2i(0, 1);
262 gGL.vertex2i(0, mHeight); 263 gGL.vertex2i(0, mHeight);
@@ -269,7 +270,7 @@ void LLVisualParamHint::draw()
269 } 270 }
270 gGL.end(); 271 gGL.end();
271 272
272 LLImageGL::unbindTexture(0, GL_TEXTURE_2D); 273 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
273} 274}
274 275
275//----------------------------------------------------------------------------- 276//-----------------------------------------------------------------------------