summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpoolavatar.cpp
diff options
context:
space:
mode:
authorGraham Madarasz (Graham) <graham@lindenlab.com>2013-07-11 16:42:14 -0700
committerGraham Madarasz (Graham) <graham@lindenlab.com>2013-07-11 16:42:14 -0700
commitd07ba61a850d926eda3e6a9abe54465c7a462676 (patch)
treebaaa5c9a57309418e5b73611028f9000bee9d484 /indra/newview/lldrawpoolavatar.cpp
parente9cdd0bfe8fe7f3bec0e6db7fba43e11f729af8a (diff)
NORSPEC-291 really fix missing avatar
Diffstat (limited to 'indra/newview/lldrawpoolavatar.cpp')
-rwxr-xr-xindra/newview/lldrawpoolavatar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp
index 86776b7e42..59c9cf5a83 100755
--- a/indra/newview/lldrawpoolavatar.cpp
+++ b/indra/newview/lldrawpoolavatar.cpp
@@ -299,10 +299,10 @@ void LLDrawPoolAvatar::beginDeferredRiggedMaterialAlpha(S32 pass)
sVertexProgram = &gDeferredMaterialProgram[pass];
- //if (LLPipeline::sUnderWaterRender)
- //{
- // sVertexProgram = &(gDeferredMaterialWaterProgram[pass]);
- //}
+ if (LLPipeline::sUnderWaterRender)
+ {
+ sVertexProgram = &(gDeferredMaterialWaterProgram[pass]);
+ }
gPipeline.bindDeferredShader(*sVertexProgram);
sDiffuseChannel = sVertexProgram->enableTexture(LLViewerShaderMgr::DIFFUSE_MAP);
@@ -1099,10 +1099,10 @@ void LLDrawPoolAvatar::beginDeferredRiggedMaterial(S32 pass)
}
sVertexProgram = &gDeferredMaterialProgram[pass+LLMaterial::SHADER_COUNT];
- //if (LLPipeline::sUnderWaterRender)
- //{
- // sVertexProgram = &(gDeferredMaterialWaterProgram[pass]);
- //}
+ if (LLPipeline::sUnderWaterRender)
+ {
+ sVertexProgram = &(gDeferredMaterialWaterProgram[pass+LLMaterial::SHADER_COUNT]);
+ }
sVertexProgram->bind();
normal_channel = sVertexProgram->enableTexture(LLViewerShaderMgr::BUMP_MAP);