diff options
Diffstat (limited to 'linden/indra/newview/lltoolmorph.cpp')
-rw-r--r-- | linden/indra/newview/lltoolmorph.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/linden/indra/newview/lltoolmorph.cpp b/linden/indra/newview/lltoolmorph.cpp index 7368439..5b3f1eb 100644 --- a/linden/indra/newview/lltoolmorph.cpp +++ b/linden/indra/newview/lltoolmorph.cpp | |||
@@ -64,7 +64,6 @@ | |||
64 | #include "llvoavatar.h" | 64 | #include "llvoavatar.h" |
65 | #include "pipeline.h" | 65 | #include "pipeline.h" |
66 | 66 | ||
67 | //LLToolMorph *gToolMorph = NULL; | ||
68 | 67 | ||
69 | //static | 68 | //static |
70 | LLVisualParamHint::instance_list_t LLVisualParamHint::sInstances; | 69 | LLVisualParamHint::instance_list_t LLVisualParamHint::sInstances; |
@@ -94,9 +93,7 @@ LLVisualParamHint::LLVisualParamHint( | |||
94 | mLastParamWeight(0.f) | 93 | mLastParamWeight(0.f) |
95 | { | 94 | { |
96 | LLVisualParamHint::sInstances.insert( this ); | 95 | LLVisualParamHint::sInstances.insert( this ); |
97 | LLUUID id; | 96 | mBackgroundp = LLUI::getUIImage("avatar_thumb_bkgrnd.j2c"); |
98 | id.set( gViewerArt.getString("avatar_thumb_bkgrnd.tga") ); | ||
99 | mBackgroundp = gImageList.getImage(id, FALSE, TRUE); | ||
100 | 97 | ||
101 | 98 | ||
102 | llassert(width != 0); | 99 | llassert(width != 0); |
@@ -180,10 +177,7 @@ BOOL LLVisualParamHint::render() | |||
180 | 177 | ||
181 | LLGLSUIDefault gls_ui; | 178 | LLGLSUIDefault gls_ui; |
182 | //LLGLState::verify(TRUE); | 179 | //LLGLState::verify(TRUE); |
183 | LLViewerImage::bindTexture(mBackgroundp); | 180 | mBackgroundp->draw(0, 0, mWidth, mHeight); |
184 | gGL.color4f(1.f, 1.f, 1.f, 1.f); | ||
185 | gl_rect_2d_simple_tex( mWidth, mHeight ); | ||
186 | mBackgroundp->unbindTexture(0, GL_TEXTURE_2D); | ||
187 | 181 | ||
188 | glMatrixMode(GL_PROJECTION); | 182 | glMatrixMode(GL_PROJECTION); |
189 | glPopMatrix(); | 183 | glPopMatrix(); |
@@ -229,13 +223,13 @@ BOOL LLVisualParamHint::render() | |||
229 | LLVector3 camera_pos = target_joint_pos + (camera_snapshot_offset * avatar_rotation); | 223 | LLVector3 camera_pos = target_joint_pos + (camera_snapshot_offset * avatar_rotation); |
230 | 224 | ||
231 | gGL.stop(); | 225 | gGL.stop(); |
232 | gCamera->setAspect((F32)mWidth / (F32)mHeight); | 226 | LLViewerCamera::getInstance()->setAspect((F32)mWidth / (F32)mHeight); |
233 | gCamera->setOriginAndLookAt( | 227 | LLViewerCamera::getInstance()->setOriginAndLookAt( |
234 | camera_pos, // camera | 228 | camera_pos, // camera |
235 | LLVector3(0.f, 0.f, 1.f), // up | 229 | LLVector3(0.f, 0.f, 1.f), // up |
236 | target_pos ); // point of interest | 230 | target_pos ); // point of interest |
237 | 231 | ||
238 | gCamera->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mWidth, mHeight, FALSE); | 232 | LLViewerCamera::getInstance()->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mWidth, mHeight, FALSE); |
239 | 233 | ||
240 | if (avatarp->mDrawable.notNull()) | 234 | if (avatarp->mDrawable.notNull()) |
241 | { | 235 | { |