From 6d52efe452aa8469e0343da1c7d108f3f52ab651 Mon Sep 17 00:00:00 2001 From: Brad Kittenbrink Date: Wed, 27 Feb 2008 18:58:14 +0000 Subject: 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 --- indra/newview/lltoolmorph.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'indra/newview/lltoolmorph.cpp') 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); } -- cgit v1.2.3