diff options
author | Oz Linden <oz@lindenlab.com> | 2013-04-16 09:00:39 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-04-16 09:00:39 -0400 |
commit | b7d4ba1f086e8a318e389add7c17dcb803689a7d (patch) | |
tree | abd44fe38364125ba5de0ebe260701a1d25c0645 /indra/llrender | |
parent | d1f713f30bd4d42fe4696e25c01ab4532ef3b69b (diff) | |
parent | c72c3691ecf83875d4ee3e0784b3e76cb4b4633a (diff) |
merge changes for alpha fixes from geenz
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index d4ddc6396b..8983181adf 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -805,7 +805,6 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade //an error occured, print log LL_WARNS("ShaderLoading") << "GLSL Compilation Error: (" << error << ") in " << filename << LL_ENDL; dumpObjectLog(ret); - #if LL_WINDOWS std::stringstream ostr; //dump shader source for debugging @@ -823,8 +822,20 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade } LL_WARNS("ShaderLoading") << "\n" << ostr.str() << llendl; -#endif // LL_WINDOWS - +#else + std::string str; + + for (GLuint i = 0; i < count; i++) { + str.append(text[i]); + + if (i % 128 == 0) + { + LL_WARNS("ShaderLoading") << str << llendl; + str = ""; + } + } +#endif + ret = 0; } } |