aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lldrawpool.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2010-02-09 21:11:42 -0600
committerJacek Antonelli2010-02-16 18:50:15 -0600
commite6247fbe78c4d3dacb74f3b2359aba2b6538133b (patch)
tree10c42d670a2c635b4339f7f68809c221756774f8 /linden/indra/newview/lldrawpool.cpp
parentPorted some cURL and HTTP-related changes from Snowglobe. (diff)
downloadmeta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.zip
meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.gz
meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.bz2
meta-impy-e6247fbe78c4d3dacb74f3b2359aba2b6538133b.tar.xz
Ported many texture engine changes from Snowglobe.
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lldrawpool.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpool.cpp b/linden/indra/newview/lldrawpool.cpp
index 9f05ce3..e1bf1ed 100644
--- a/linden/indra/newview/lldrawpool.cpp
+++ b/linden/indra/newview/lldrawpool.cpp
@@ -279,7 +279,7 @@ S32 LLFacePool::drawLoopSetTex(face_array_t& face_list, S32 stage)
279 iter != face_list.end(); iter++) 279 iter != face_list.end(); iter++)
280 { 280 {
281 LLFace *facep = *iter; 281 LLFace *facep = *iter;
282 gGL.getTexUnit(stage)->bind(facep->getTexture()); 282 gGL.getTexUnit(stage)->bind(facep->getTexture(), TRUE);
283 gGL.getTexUnit(0)->activate(); 283 gGL.getTexUnit(0)->activate();
284 res += facep->renderIndexed(); 284 res += facep->renderIndexed();
285 } 285 }
@@ -481,14 +481,13 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture)
481 { 481 {
482 if (params.mTexture.notNull()) 482 if (params.mTexture.notNull())
483 { 483 {
484 gGL.getTexUnit(0)->bind(params.mTexture.get()); 484 gGL.getTexUnit(0)->bind(params.mTexture.get(), TRUE);
485 if (params.mTextureMatrix) 485 if (params.mTextureMatrix)
486 { 486 {
487 glMatrixMode(GL_TEXTURE); 487 glMatrixMode(GL_TEXTURE);
488 glLoadMatrixf((GLfloat*) params.mTextureMatrix->mMatrix); 488 glLoadMatrixf((GLfloat*) params.mTextureMatrix->mMatrix);
489 gPipeline.mTextureMatrixOps++; 489 gPipeline.mTextureMatrixOps++;
490 } 490 }
491 params.mTexture->addTextureStats(params.mVSize);
492 } 491 }
493 else 492 else
494 { 493 {