diff options
author | Tofu Buzzard <no-email> | 2011-02-17 14:27:03 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-02-17 14:27:03 -0800 |
commit | aa246374cc513f264ea620521a6df8e430a646f3 (patch) | |
tree | a1173e91ac21ef50ff3ab7a74f3af4839cb4f8e6 /indra/newview/lldrawpoolavatar.cpp | |
parent | 3362fc17f93cbd7e6bfa23dc7af64ef749609ee2 (diff) | |
parent | c05f3d384b747cfc2c732bad139e12e834507cf9 (diff) |
merge
Diffstat (limited to 'indra/newview/lldrawpoolavatar.cpp')
-rw-r--r-- | indra/newview/lldrawpoolavatar.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index ae3421a019..fbf39ee91e 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -1030,6 +1030,7 @@ void LLDrawPoolAvatar::beginDeferredSkinned() sVertexProgram->bind(); + sDiffuseChannel = sVertexProgram->enableTexture(LLViewerShaderMgr::DIFFUSE_MAP); enable_vertex_weighting(sVertexProgram->mAttribute[LLViewerShaderMgr::AVATAR_WEIGHT]); gGL.getTexUnit(0)->activate(); @@ -1042,6 +1043,8 @@ void LLDrawPoolAvatar::endDeferredSkinned() disable_vertex_weighting(sVertexProgram->mAttribute[LLViewerShaderMgr::AVATAR_WEIGHT]); sVertexProgram->unbind(); + sVertexProgram->disableTexture(LLViewerShaderMgr::DIFFUSE_MAP); + sShaderLevel = mVertexShaderLevel; gGL.getTexUnit(0)->activate(); |