diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/lldrawpoolavatar.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/lldrawpoolavatar.cpp')
-rw-r--r-- | linden/indra/newview/lldrawpoolavatar.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/linden/indra/newview/lldrawpoolavatar.cpp b/linden/indra/newview/lldrawpoolavatar.cpp index debcfe2..b864449 100644 --- a/linden/indra/newview/lldrawpoolavatar.cpp +++ b/linden/indra/newview/lldrawpoolavatar.cpp | |||
@@ -102,7 +102,8 @@ BOOL gRenderAvatar = TRUE; | |||
102 | 102 | ||
103 | S32 LLDrawPoolAvatar::getVertexShaderLevel() const | 103 | S32 LLDrawPoolAvatar::getVertexShaderLevel() const |
104 | { | 104 | { |
105 | return (S32) LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_AVATAR); | 105 | return sShaderLevel; |
106 | //return (S32) LLShaderMgr::getVertexShaderLevel(LLShaderMgr::SHADER_AVATAR); | ||
106 | } | 107 | } |
107 | 108 | ||
108 | void LLDrawPoolAvatar::prerender() | 109 | void LLDrawPoolAvatar::prerender() |
@@ -197,20 +198,22 @@ void LLDrawPoolAvatar::endFootShadow() | |||
197 | 198 | ||
198 | void LLDrawPoolAvatar::beginRigid() | 199 | void LLDrawPoolAvatar::beginRigid() |
199 | { | 200 | { |
200 | sVertexProgram = &gAvatarEyeballProgram; | 201 | sVertexProgram = NULL; |
202 | sShaderLevel = 0; | ||
201 | glEnableClientState(GL_NORMAL_ARRAY); | 203 | glEnableClientState(GL_NORMAL_ARRAY); |
202 | glEnableClientState(GL_TEXTURE_COORD_ARRAY); | 204 | glEnableClientState(GL_TEXTURE_COORD_ARRAY); |
203 | 205 | ||
204 | if (sShaderLevel > 0) | 206 | /*if (sShaderLevel > 0) |
205 | { //eyeballs render with the specular shader | 207 | { //eyeballs render with the specular shader |
206 | gAvatarEyeballProgram.bind(); | 208 | gAvatarEyeballProgram.bind(); |
207 | gMaterialIndex = gAvatarEyeballProgram.mAttribute[LLShaderMgr::MATERIAL_COLOR]; | 209 | gMaterialIndex = gAvatarEyeballProgram.mAttribute[LLShaderMgr::MATERIAL_COLOR]; |
208 | gSpecularIndex = gAvatarEyeballProgram.mAttribute[LLShaderMgr::SPECULAR_COLOR]; | 210 | gSpecularIndex = gAvatarEyeballProgram.mAttribute[LLShaderMgr::SPECULAR_COLOR]; |
209 | } | 211 | }*/ |
210 | } | 212 | } |
211 | 213 | ||
212 | void LLDrawPoolAvatar::endRigid() | 214 | void LLDrawPoolAvatar::endRigid() |
213 | { | 215 | { |
216 | sShaderLevel = mVertexShaderLevel; | ||
214 | glDisableClientState(GL_NORMAL_ARRAY); | 217 | glDisableClientState(GL_NORMAL_ARRAY); |
215 | glDisableClientState(GL_TEXTURE_COORD_ARRAY); | 218 | glDisableClientState(GL_TEXTURE_COORD_ARRAY); |
216 | } | 219 | } |