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/lltoolmorph.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 '')
-rw-r--r-- | linden/indra/newview/lltoolmorph.cpp | 7 |
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 | //----------------------------------------------------------------------------- |