summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-04-07 14:22:24 -0700
committerPtolemy <ptolemy@lindenlab.com>2020-04-07 14:22:24 -0700
commit0b717e2d1a0ca19eb8b4e9f20375e3a413ed2879 (patch)
tree95259846e0ff76abad444c0ba788b99630a5b0fc
parent4051f5754a53d12454365337d0e619d8f75bf4ad (diff)
SL-10449 Cleanup dumping shader without LOG spam on every line when it fails to compile/link
-rw-r--r--indra/llrender/llshadermgr.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 8cfccb944c..86eea458c5 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -572,18 +572,7 @@ void LLShaderMgr::dumpShaderSource(U32 shader_code_count, GLcharARB** shader_cod
{
for (U32 i = 0; i < shader_code_count; i++)
{
- GLcharARB *line = shader_code_text[i];
- size_t len = strlen( line );
- GLcharARB last = len > 0 ? line[len - 1] : 0;
-
- // LL_ENDL already outputs a newline so temporarily strip off the end newline to prevent EVERY line outputting an (extra) blank line
- if (last == '\n')
- line[len - 1] = 0;
-
- LL_SHADER_LOADING_WARNS() << i+1 << ": " << shader_code_text[i] << LL_ENDL;
-
- if (last == '\n')
- line[len - 1] = '\n';
+ fprintf(stderr, "%4d: %s", i+1, shader_code_text[i]);
}
LL_SHADER_LOADING_WARNS() << LL_ENDL;
}