diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llfloaterimagepreview.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterimagepreview.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.cpp b/linden/indra/newview/llfloaterimagepreview.cpp index c741bdb..9c68ca8 100644 --- a/linden/indra/newview/llfloaterimagepreview.cpp +++ b/linden/indra/newview/llfloaterimagepreview.cpp | |||
@@ -179,7 +179,6 @@ void LLFloaterImagePreview::onPreviewTypeCommit(LLUICtrl* ctrl, void* userdata) | |||
179 | break; | 179 | break; |
180 | } | 180 | } |
181 | fp->mAvatarPreview->refresh(); | 181 | fp->mAvatarPreview->refresh(); |
182 | //gViewerWindow->requestFastFrame(fp); | ||
183 | } | 182 | } |
184 | 183 | ||
185 | //----------------------------------------------------------------------------- | 184 | //----------------------------------------------------------------------------- |
@@ -489,7 +488,6 @@ BOOL LLFloaterImagePreview::handleHover(S32 x, S32 y, MASK mask) | |||
489 | } | 488 | } |
490 | 489 | ||
491 | LLUI::setCursorPositionLocal(this, mLastMouseX, mLastMouseY); | 490 | LLUI::setCursorPositionLocal(this, mLastMouseX, mLastMouseY); |
492 | //gViewerWindow->requestFastFrame(this); | ||
493 | } | 491 | } |
494 | 492 | ||
495 | if (!mPreviewRect.pointInRect(x, y) || !mAvatarPreview) | 493 | if (!mPreviewRect.pointInRect(x, y) || !mAvatarPreview) |
@@ -521,7 +519,6 @@ BOOL LLFloaterImagePreview::handleScrollWheel(S32 x, S32 y, S32 clicks) | |||
521 | { | 519 | { |
522 | mAvatarPreview->zoom((F32)clicks * -0.2f); | 520 | mAvatarPreview->zoom((F32)clicks * -0.2f); |
523 | mAvatarPreview->refresh(); | 521 | mAvatarPreview->refresh(); |
524 | //gViewerWindow->requestFastFrame(this); | ||
525 | } | 522 | } |
526 | 523 | ||
527 | return TRUE; | 524 | return TRUE; |
@@ -557,7 +554,7 @@ LLImagePreviewAvatar::LLImagePreviewAvatar(S32 width, S32 height) : LLDynamicTex | |||
557 | mDummyAvatar->slamPosition(); | 554 | mDummyAvatar->slamPosition(); |
558 | mDummyAvatar->updateJointLODs(); | 555 | mDummyAvatar->updateJointLODs(); |
559 | mDummyAvatar->updateGeometry(mDummyAvatar->mDrawable); | 556 | mDummyAvatar->updateGeometry(mDummyAvatar->mDrawable); |
560 | gPipeline.markVisible(mDummyAvatar->mDrawable); | 557 | gPipeline.markVisible(mDummyAvatar->mDrawable, *gCamera); |
561 | 558 | ||
562 | mTextureName = 0; | 559 | mTextureName = 0; |
563 | } | 560 | } |
@@ -645,6 +642,10 @@ BOOL LLImagePreviewAvatar::render() | |||
645 | gCamera->setView(gCamera->getDefaultFOV() / mCameraZoom); | 642 | gCamera->setView(gCamera->getDefaultFOV() / mCameraZoom); |
646 | gCamera->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mWidth, mHeight, FALSE); | 643 | gCamera->setPerspective(FALSE, mOrigin.mX, mOrigin.mY, mWidth, mHeight, FALSE); |
647 | 644 | ||
645 | LLVertexBuffer::stopRender(); | ||
646 | avatarp->updateLOD(); | ||
647 | LLVertexBuffer::startRender(); | ||
648 | |||
648 | if (avatarp->mDrawable.notNull()) | 649 | if (avatarp->mDrawable.notNull()) |
649 | { | 650 | { |
650 | LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE); | 651 | LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE); |
@@ -653,13 +654,7 @@ BOOL LLImagePreviewAvatar::render() | |||
653 | 654 | ||
654 | LLDrawPoolAvatar *avatarPoolp = (LLDrawPoolAvatar *)avatarp->mDrawable->getFace(0)->getPool(); | 655 | LLDrawPoolAvatar *avatarPoolp = (LLDrawPoolAvatar *)avatarp->mDrawable->getFace(0)->getPool(); |
655 | 656 | ||
656 | gPipeline.unbindAGP(); | 657 | avatarPoolp->renderAvatars(avatarp); // renders only one avatar |
657 | avatarPoolp->syncAGP(); | ||
658 | if (avatarPoolp->canUseAGP() && gPipeline.usingAGP()) | ||
659 | { | ||
660 | gPipeline.bindAGP(); | ||
661 | } | ||
662 | avatarPoolp->renderAvatars(avatarp, TRUE); // renders only one avatar (no shaders) | ||
663 | } | 658 | } |
664 | 659 | ||
665 | return TRUE; | 660 | return TRUE; |