diff options
author | Dave Parks <davep@lindenlab.com> | 2010-08-13 14:42:07 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-08-13 14:42:07 -0500 |
commit | 62943202a7c4334ce7b7be96f8f64133444ee925 (patch) | |
tree | de02cd2420d1c21635d468a6e6c21add350c4f1e /indra/llrender/llglslshader.cpp | |
parent | 340a729d55983110a85cfc55f1ce0a952bfe15b4 (diff) |
Make rigged attachments respect under water rendering.
Reviewed by Nyx.
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rw-r--r-- | indra/llrender/llglslshader.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 9256e3959c..f59bac8c3c 100644 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -709,7 +709,15 @@ GLint LLGLSLShader::getUniformLocation(const string& uniform) std::map<string, GLint>::iterator iter = mUniformMap.find(uniform); if (iter != mUniformMap.end()) { - llassert(iter->second == glGetUniformLocationARB(mProgramObject, uniform.c_str())); + if (gDebugGL) + { + stop_glerror(); + if (iter->second != glGetUniformLocationARB(mProgramObject, uniform.c_str())) + { + llerrs << "Uniform does not match." << llendl; + } + stop_glerror(); + } return iter->second; } } @@ -900,7 +908,9 @@ void LLGLSLShader::uniformMatrix4fv(const string& uniform, U32 count, GLboolean if (location >= 0) { + stop_glerror(); glUniformMatrix4fvARB(location, count, transpose, v); + stop_glerror(); } } |