summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateranimpreview.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-05-08 18:41:20 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-05-08 18:41:20 +0000
commit63e7894148fdc7064b422bf65a0b75ffcf293496 (patch)
tree4cca89d9da518f264001e7cb4950f453647f2e5f /indra/newview/llfloateranimpreview.cpp
parenta75b85112ffa4b7140561083c2e5de05fb510805 (diff)
QAR-570 maint-render-4 merge
merge -r 87067:87077 svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-render/maint-render-4-merge -> release. dataserver-is-deprecated.
Diffstat (limited to 'indra/newview/llfloateranimpreview.cpp')
-rw-r--r--indra/newview/llfloateranimpreview.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llfloateranimpreview.cpp b/indra/newview/llfloateranimpreview.cpp
index c2495e4037..d9411b58d8 100644
--- a/indra/newview/llfloateranimpreview.cpp
+++ b/indra/newview/llfloateranimpreview.cpp
@@ -382,7 +382,7 @@ void LLFloaterAnimPreview::draw()
gGL.color3f(1.f, 1.f, 1.f);
mAnimPreview->bindTexture();
- gGL.begin( GL_QUADS );
+ gGL.begin( LLVertexBuffer::QUADS );
{
gGL.texCoord2f(0.f, 1.f);
gGL.vertex2i(PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT);
@@ -1068,8 +1068,6 @@ BOOL LLPreviewAnimation::render()
{
mNeedsUpdate = FALSE;
LLVOAvatar* avatarp = mDummyAvatar;
-
- gGL.start();
glMatrixMode(GL_PROJECTION);
gGL.pushMatrix();
@@ -1092,7 +1090,7 @@ BOOL LLPreviewAnimation::render()
glMatrixMode(GL_MODELVIEW);
gGL.popMatrix();
- gGL.stop();
+ gGL.flush();
LLVector3 target_pos = avatarp->mRoot.getWorldPosition();
@@ -1124,9 +1122,9 @@ BOOL LLPreviewAnimation::render()
avatarp->updateMotion();
}
- LLVertexBuffer::stopRender();
+ LLVertexBuffer::unbind();
avatarp->updateLOD();
- LLVertexBuffer::startRender();
+
avatarp->mRoot.updateWorldMatrixChildren();
@@ -1140,6 +1138,7 @@ BOOL LLPreviewAnimation::render()
avatarPoolp->renderAvatars(avatarp); // renders only one avatar
}
+ gGL.color4f(1,1,1,1);
return TRUE;
}