aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloateranimpreview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:49 -0500
committerJacek Antonelli2008-08-15 23:45:49 -0500
commit8538c0f35dc5fb780f02930256e627e5266ede4a (patch)
tree58950646aae6534fafe680a5cf879d01cd99d254 /linden/indra/newview/llfloateranimpreview.cpp
parentSecond Life viewer sources 1.20.5 (diff)
downloadmeta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.zip
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.gz
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.bz2
meta-impy-8538c0f35dc5fb780f02930256e627e5266ede4a.tar.xz
Second Life viewer sources 1.20.6
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloateranimpreview.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloateranimpreview.cpp b/linden/indra/newview/llfloateranimpreview.cpp
index 253e5b0..890cfd2 100644
--- a/linden/indra/newview/llfloateranimpreview.cpp
+++ b/linden/indra/newview/llfloateranimpreview.cpp
@@ -382,7 +382,7 @@ void LLFloaterAnimPreview::draw()
382 gGL.color3f(1.f, 1.f, 1.f); 382 gGL.color3f(1.f, 1.f, 1.f);
383 mAnimPreview->bindTexture(); 383 mAnimPreview->bindTexture();
384 384
385 gGL.begin( GL_QUADS ); 385 gGL.begin( LLVertexBuffer::QUADS );
386 { 386 {
387 gGL.texCoord2f(0.f, 1.f); 387 gGL.texCoord2f(0.f, 1.f);
388 gGL.vertex2i(PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT); 388 gGL.vertex2i(PREVIEW_HPAD, PREVIEW_TEXTURE_HEIGHT);
@@ -1068,8 +1068,6 @@ BOOL LLPreviewAnimation::render()
1068{ 1068{
1069 mNeedsUpdate = FALSE; 1069 mNeedsUpdate = FALSE;
1070 LLVOAvatar* avatarp = mDummyAvatar; 1070 LLVOAvatar* avatarp = mDummyAvatar;
1071
1072 gGL.start();
1073 1071
1074 glMatrixMode(GL_PROJECTION); 1072 glMatrixMode(GL_PROJECTION);
1075 gGL.pushMatrix(); 1073 gGL.pushMatrix();
@@ -1092,7 +1090,7 @@ BOOL LLPreviewAnimation::render()
1092 glMatrixMode(GL_MODELVIEW); 1090 glMatrixMode(GL_MODELVIEW);
1093 gGL.popMatrix(); 1091 gGL.popMatrix();
1094 1092
1095 gGL.stop(); 1093 gGL.flush();
1096 1094
1097 LLVector3 target_pos = avatarp->mRoot.getWorldPosition(); 1095 LLVector3 target_pos = avatarp->mRoot.getWorldPosition();
1098 1096
@@ -1124,9 +1122,9 @@ BOOL LLPreviewAnimation::render()
1124 avatarp->updateMotion(); 1122 avatarp->updateMotion();
1125 } 1123 }
1126 1124
1127 LLVertexBuffer::stopRender(); 1125 LLVertexBuffer::unbind();
1128 avatarp->updateLOD(); 1126 avatarp->updateLOD();
1129 LLVertexBuffer::startRender(); 1127
1130 1128
1131 avatarp->mRoot.updateWorldMatrixChildren(); 1129 avatarp->mRoot.updateWorldMatrixChildren();
1132 1130
@@ -1140,6 +1138,7 @@ BOOL LLPreviewAnimation::render()
1140 avatarPoolp->renderAvatars(avatarp); // renders only one avatar 1138 avatarPoolp->renderAvatars(avatarp); // renders only one avatar
1141 } 1139 }
1142 1140
1141 gGL.color4f(1,1,1,1);
1143 return TRUE; 1142 return TRUE;
1144} 1143}
1145 1144