diff options
author | Dave Parks <davep@lindenlab.com> | 2011-10-20 14:33:36 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-10-20 14:33:36 -0500 |
commit | 4e894bfa316ff4bc2fa64f711b8442b228573f90 (patch) | |
tree | e5661b6b75ee007b4dc846a802b0ac7f4687f892 /indra/newview/lldrawpoolbump.cpp | |
parent | 1762cc49395d2596ab0788b2a4504abaefbe64db (diff) |
SH-2600 Fix for busted texture animation on bump mapped objects.
Diffstat (limited to 'indra/newview/lldrawpoolbump.cpp')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index be12eb800f..610d3f9f99 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -1453,11 +1453,10 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL } else { - gGL.getTexUnit(1)->activate(); + gGL.getTexUnit(0)->activate(); gGL.matrixMode(LLRender::MM_TEXTURE); gGL.loadMatrix((GLfloat*) params.mTextureMatrix->mMatrix); gPipeline.mTextureMatrixOps++; - gGL.getTexUnit(0)->activate(); } gGL.loadMatrix((GLfloat*) params.mTextureMatrix->mMatrix); @@ -1470,7 +1469,7 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL { if (params.mTexture.notNull()) { - gGL.getTexUnit(diffuse_channel)->bind(params.mTexture) ; + gGL.getTexUnit(diffuse_channel)->bind(params.mTexture); params.mTexture->addTextureStats(params.mVSize); } else |