aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterimagepreview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:45 -0500
committerJacek Antonelli2008-08-15 23:45:45 -0500
commitb1831d23bfdd0c876ac8cf687d6d3cf02345e28e (patch)
treee977d6563859940ad05af08b7bc150f57a7cb548 /linden/indra/newview/llfloaterimagepreview.cpp
parentSecond Life viewer sources 1.20.3 (diff)
downloadmeta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.zip
meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.gz
meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.bz2
meta-impy-b1831d23bfdd0c876ac8cf687d6d3cf02345e28e.tar.xz
Second Life viewer sources 1.20.4
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterimagepreview.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterimagepreview.cpp b/linden/indra/newview/llfloaterimagepreview.cpp
index 7b1c8cc..f1f7ff6 100644
--- a/linden/indra/newview/llfloaterimagepreview.cpp
+++ b/linden/indra/newview/llfloaterimagepreview.cpp
@@ -667,6 +667,8 @@ void LLImagePreviewAvatar::setPreviewTarget(const char* joint_name, const char*
667//----------------------------------------------------------------------------- 667//-----------------------------------------------------------------------------
668BOOL LLImagePreviewAvatar::render() 668BOOL LLImagePreviewAvatar::render()
669{ 669{
670 gGL.start();
671
670 mNeedsUpdate = FALSE; 672 mNeedsUpdate = FALSE;
671 LLVOAvatar* avatarp = mDummyAvatar; 673 LLVOAvatar* avatarp = mDummyAvatar;
672 674
@@ -723,8 +725,6 @@ BOOL LLImagePreviewAvatar::render()
723 avatarPoolp->renderAvatars(avatarp); // renders only one avatar 725 avatarPoolp->renderAvatars(avatarp); // renders only one avatar
724 } 726 }
725 727
726 gGL.start();
727
728 return TRUE; 728 return TRUE;
729} 729}
730 730
@@ -823,6 +823,8 @@ void LLImagePreviewSculpted::setPreviewTarget(LLImageRaw* imagep, F32 distance)
823//----------------------------------------------------------------------------- 823//-----------------------------------------------------------------------------
824BOOL LLImagePreviewSculpted::render() 824BOOL LLImagePreviewSculpted::render()
825{ 825{
826 gGL.start();
827
826 mNeedsUpdate = FALSE; 828 mNeedsUpdate = FALSE;
827 829
828 LLGLSUIDefault def; 830 LLGLSUIDefault def;
@@ -917,6 +919,8 @@ BOOL LLImagePreviewSculpted::render()
917 delete [] normals; 919 delete [] normals;
918 } 920 }
919 921
922 gGL.stop();
923
920 return TRUE; 924 return TRUE;
921} 925}
922 926