aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolbump.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:55 -0500
committerJacek Antonelli2008-08-15 23:45:55 -0500
commit9063e60aefe54f7c45aaa8cb24e8998b2c7343ab (patch)
tree1c8235465701c910a5d76448ddc8eb1f14457ebc /linden/indra/newview/lldrawpoolbump.cpp
parentSecond Life viewer sources 1.20.9 (diff)
downloadmeta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.zip
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.gz
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.bz2
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.xz
Second Life viewer sources 1.20.10
Diffstat (limited to 'linden/indra/newview/lldrawpoolbump.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolbump.cpp41
1 files changed, 1 insertions, 40 deletions
diff --git a/linden/indra/newview/lldrawpoolbump.cpp b/linden/indra/newview/lldrawpoolbump.cpp
index c7c19d9..6154c5b 100644
--- a/linden/indra/newview/lldrawpoolbump.cpp
+++ b/linden/indra/newview/lldrawpoolbump.cpp
@@ -556,30 +556,7 @@ void LLDrawPoolBump::renderGroup(LLSpatialGroup* group, U32 type, U32 mask, BOOL
556 for (LLSpatialGroup::drawmap_elem_t::iterator k = draw_info.begin(); k != draw_info.end(); ++k) 556 for (LLSpatialGroup::drawmap_elem_t::iterator k = draw_info.begin(); k != draw_info.end(); ++k)
557 { 557 {
558 LLDrawInfo& params = **k; 558 LLDrawInfo& params = **k;
559 if (LLPipeline::sDynamicReflections) 559
560 {
561 if (params.mReflectionMap.notNull())
562 {
563 params.mReflectionMap->bind();
564 }
565 else
566 {
567 if (params.mModelMatrix)
568 {
569 sCubeMap = gPipeline.findReflectionMap(params.mModelMatrix->getTranslation());
570 }
571
572 if (sCubeMap)
573 {
574 sCubeMap->bind();
575 }
576 else if (gSky.mVOSkyp->getCubeMap())
577 {
578 gSky.mVOSkyp->getCubeMap()->bind();
579 }
580 }
581 }
582
583 applyModelMatrix(params); 560 applyModelMatrix(params);
584 561
585 params.mVertexBuffer->setBuffer(mask); 562 params.mVertexBuffer->setBuffer(mask);
@@ -1121,22 +1098,6 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture)
1121 { 1098 {
1122 LLImageGL::unbindTexture(0); 1099 LLImageGL::unbindTexture(0);
1123 } 1100 }
1124
1125 if (LLPipeline::sDynamicReflections)
1126 {
1127 LLCubeMap* cube_map = params.mReflectionMap;
1128
1129 if (!cube_map && params.mModelMatrix)
1130 {
1131 cube_map = gPipeline.findReflectionMap(params.mModelMatrix->getTranslation());
1132 }
1133
1134 if (cube_map)
1135 {
1136 cube_map->enableTexture(cube_channel);
1137 cube_map->bind();
1138 }
1139 }
1140 } 1101 }
1141 1102
1142 params.mVertexBuffer->setBuffer(mask); 1103 params.mVertexBuffer->setBuffer(mask);