diff options
author | dolphin <dolphin@lindenlab.com> | 2014-02-12 14:31:37 -0800 |
---|---|---|
committer | dolphin <dolphin@lindenlab.com> | 2014-02-12 14:31:37 -0800 |
commit | 7c3e51b05cfe8757bc72a8b5c19eff307b1e501f (patch) | |
tree | 8c3b36a820d7ea3eae7d0bb7bc544f8548986f02 /indra/llrender/llglslshader.cpp | |
parent | 8b690a3fdfb24aea23150031768e0734043195aa (diff) | |
parent | 413be91cf5044889ade97dcbec4b17fceff122e3 (diff) |
Merge with 3.7.0
Diffstat (limited to 'indra/llrender/llglslshader.cpp')
-rwxr-xr-x | indra/llrender/llglslshader.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llrender/llglslshader.cpp b/indra/llrender/llglslshader.cpp index 35620bb656..1c50a51d02 100755 --- a/indra/llrender/llglslshader.cpp +++ b/indra/llrender/llglslshader.cpp @@ -717,7 +717,14 @@ BOOL LLGLSLShader::mapUniforms(const vector<LLStaticHashedString> * uniforms) BOOL LLGLSLShader::link(BOOL suppress_errors) { - return LLShaderMgr::instance()->linkProgramObject(mProgramObject, suppress_errors); + BOOL success = LLShaderMgr::instance()->linkProgramObject(mProgramObject, suppress_errors); + + if (!suppress_errors) + { + LLShaderMgr::instance()->dumpObjectLog(mProgramObject, !success, mName); + } + + return success; } void LLGLSLShader::bind() |