summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolmorph.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/lltoolmorph.cpp
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff)
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932). svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/lltoolmorph.cpp')
-rw-r--r--indra/newview/lltoolmorph.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/indra/newview/lltoolmorph.cpp b/indra/newview/lltoolmorph.cpp
index 3a56a9fd63..e32f9bfcc1 100644
--- a/indra/newview/lltoolmorph.cpp
+++ b/indra/newview/lltoolmorph.cpp
@@ -33,6 +33,7 @@
// File includes
#include "lltoolmorph.h"
+#include "llglimmediate.h"
// Library includes
#include "audioengine.h"
@@ -180,7 +181,7 @@ BOOL LLVisualParamHint::render()
LLGLSUIDefault gls_ui;
//LLGLState::verify(TRUE);
LLViewerImage::bindTexture(mBackgroundp);
- glColor4f(1.f, 1.f, 1.f, 1.f);
+ gGL.color4f(1.f, 1.f, 1.f, 1.f);
gl_rect_2d_simple_tex( mWidth, mHeight );
mBackgroundp->unbindTexture(0, GL_TEXTURE_2D);
@@ -227,6 +228,7 @@ BOOL LLVisualParamHint::render()
mVisualParam->getCameraElevation() );
LLVector3 camera_pos = target_joint_pos + (camera_snapshot_offset * avatar_rotation);
+ gGL.stop();
gCamera->setAspect((F32)mWidth / (F32)mHeight);
gCamera->setOriginAndLookAt(
camera_pos, // camera
@@ -242,7 +244,7 @@ BOOL LLVisualParamHint::render()
avatarPoolp->renderAvatars(avatarp); // renders only one avatar
}
avatarp->setVisualParamWeight(mVisualParam, mLastParamWeight);
-
+ gGL.start();
return TRUE;
}
@@ -256,21 +258,21 @@ void LLVisualParamHint::draw()
bindTexture();
- glColor4f(1.f, 1.f, 1.f, 1.f);
+ gGL.color4f(1.f, 1.f, 1.f, 1.f);
LLGLSUIDefault gls_ui;
- glBegin(GL_QUADS);
+ gGL.begin(GL_QUADS);
{
- glTexCoord2i(0, 1);
- glVertex2i(0, mHeight);
- glTexCoord2i(0, 0);
- glVertex2i(0, 0);
- glTexCoord2i(1, 0);
- glVertex2i(mWidth, 0);
- glTexCoord2i(1, 1);
- glVertex2i(mWidth, mHeight);
+ gGL.texCoord2i(0, 1);
+ gGL.vertex2i(0, mHeight);
+ gGL.texCoord2i(0, 0);
+ gGL.vertex2i(0, 0);
+ gGL.texCoord2i(1, 0);
+ gGL.vertex2i(mWidth, 0);
+ gGL.texCoord2i(1, 1);
+ gGL.vertex2i(mWidth, mHeight);
}
- glEnd();
+ gGL.end();
LLImageGL::unbindTexture(0, GL_TEXTURE_2D);
}