aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpoolbump.cpp
diff options
context:
space:
mode:
authorRobin Cornelius2010-10-10 22:10:33 +0100
committerRobin Cornelius2010-10-10 22:10:33 +0100
commitb3b30285126289f54b57bd42569bb0721e40e088 (patch)
treef4aaccb98d1a835c4ea376ec2803fc410a704052 /linden/indra/newview/lldrawpoolbump.cpp
parentMerge branch 'mccabe-plugins' into plugins_merge (diff)
downloadmeta-impy-b3b30285126289f54b57bd42569bb0721e40e088.zip
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.gz
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.bz2
meta-impy-b3b30285126289f54b57bd42569bb0721e40e088.tar.xz
Revert "port of LL renderpipeline/Kirstens S19 pipeline for bridging to Viewer 2 texture system"
This reverts commit 087e15e89930d51c3964329befb273ae3b2d330d. Conflicts: linden/indra/newview/llsurface.cpp linden/indra/newview/llviewerwindow.cpp linden/indra/newview/llvoavatar.cpp linden/indra/newview/pipeline.cpp linden/indra/newview/pipeline.h
Diffstat (limited to 'linden/indra/newview/lldrawpoolbump.cpp')
-rw-r--r--linden/indra/newview/lldrawpoolbump.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/linden/indra/newview/lldrawpoolbump.cpp b/linden/indra/newview/lldrawpoolbump.cpp
index e14b34d..93fadca 100644
--- a/linden/indra/newview/lldrawpoolbump.cpp
+++ b/linden/indra/newview/lldrawpoolbump.cpp
@@ -140,7 +140,7 @@ void LLStandardBumpmap::restoreGL()
140 return; 140 return;
141 } 141 }
142 142
143// llinfos << "Loading bumpmap: " << bump_file << " from viewerart" << llendl; 143 llinfos << "Loading bumpmap: " << bump_file << " from viewerart" << llendl;
144 gStandardBumpmapList[LLStandardBumpmap::sStandardBumpmapCount].mLabel = label; 144 gStandardBumpmapList[LLStandardBumpmap::sStandardBumpmapCount].mLabel = label;
145 gStandardBumpmapList[LLStandardBumpmap::sStandardBumpmapCount].mImage = 145 gStandardBumpmapList[LLStandardBumpmap::sStandardBumpmapCount].mImage =
146 gImageList.getImageFromFile(bump_file, 146 gImageList.getImageFromFile(bump_file,
@@ -310,8 +310,8 @@ void LLDrawPoolBump::endRenderPass(S32 pass)
310void LLDrawPoolBump::beginShiny(bool invisible) 310void LLDrawPoolBump::beginShiny(bool invisible)
311{ 311{
312 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY); 312 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY);
313 if (!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY)|| 313 if ((!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY))||
314 invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)) 314 (invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)))
315 { 315 {
316 return; 316 return;
317 } 317 }
@@ -385,8 +385,8 @@ void LLDrawPoolBump::beginShiny(bool invisible)
385void LLDrawPoolBump::renderShiny(bool invisible) 385void LLDrawPoolBump::renderShiny(bool invisible)
386{ 386{
387 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY); 387 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY);
388 if (!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY)|| 388 if ((!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY))||
389 invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)) 389 (invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)))
390 { 390 {
391 return; 391 return;
392 } 392 }
@@ -412,8 +412,8 @@ void LLDrawPoolBump::renderShiny(bool invisible)
412void LLDrawPoolBump::endShiny(bool invisible) 412void LLDrawPoolBump::endShiny(bool invisible)
413{ 413{
414 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY); 414 LLFastTimer t(LLFastTimer::FTM_RENDER_SHINY);
415 if (!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY)|| 415 if ((!invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_SHINY))||
416 invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)) 416 (invisible && !gPipeline.hasRenderBatches(LLRenderPass::PASS_INVISI_SHINY)))
417 { 417 {
418 return; 418 return;
419 } 419 }
@@ -573,11 +573,7 @@ BOOL LLDrawPoolBump::bindBumpMap(LLDrawInfo& params, S32 channel)
573 LLImageGL* bump = NULL; 573 LLImageGL* bump = NULL;
574 574
575 U8 bump_code = params.mBump; 575 U8 bump_code = params.mBump;
576 LLViewerImage* tex = params.mViewerTexture; 576 LLViewerImage* tex = params.mTexture;
577 if(!tex)
578 {
579 return FALSE ;
580 }
581 577
582 switch( bump_code ) 578 switch( bump_code )
583 { 579 {
@@ -1231,10 +1227,7 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture)
1231 if (params.mTexture.notNull()) 1227 if (params.mTexture.notNull())
1232 { 1228 {
1233 gGL.getTexUnit(diffuse_channel)->bind(params.mTexture.get()); 1229 gGL.getTexUnit(diffuse_channel)->bind(params.mTexture.get());
1234 if(params.mViewerTexture.notNull()) 1230 //params.mTexture->addTextureStats(params.mVSize);
1235 {
1236 params.mViewerTexture->addTextureStats(params.mVSize);
1237 }
1238 } 1231 }
1239 else 1232 else
1240 { 1233 {