diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-07 13:50:47 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-07 13:50:47 -0500 |
commit | 666c7c429b7f38f7c93bf6c287157c2e3ab9ccd7 (patch) | |
tree | 8f3e9399dbc5cab6c28c5992b579368bb0aa8949 /indra/llrender/llglslshader.cpp | |
parent | 8ac6310020bd2d524c97c729c29a0afe4a529ecf (diff) | |
parent | b6d3d2281b855448bbeec33b2d229222d75cd6b1 (diff) |
merge
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index ca92cb6580..949057df04 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -61,7 +61,7 @@ BOOL shouldChange(const LLVector4& v1, const LLVector4& v2) LLShaderFeatures::LLShaderFeatures() : calculatesLighting(false), isShiny(false), isFullbright(false), hasWaterFog(false), -hasTransport(false), hasSkinning(false), hasAtmospherics(false), isSpecular(false), +hasTransport(false), hasSkinning(false), hasObjectSkinning(false), hasAtmospherics(false), isSpecular(false), hasGamma(false), hasLighting(false), calculatesAtmospherics(false) { } @@ -717,6 +717,18 @@ GLint LLGLSLShader::getUniformLocation(const string& uniform) return -1; } +GLint LLGLSLShader::getAttribLocation(U32 attrib) +{ + if (attrib < mAttribute.size()) + { + return mAttribute[attrib]; + } + else + { + return -1; + } +} + void LLGLSLShader::uniform1i(const string& uniform, GLint v) { GLint location = getUniformLocation(uniform); |