summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2020-04-07 14:07:45 -0700
committerPtolemy <ptolemy@lindenlab.com>2020-04-07 14:07:45 -0700
commit4051f5754a53d12454365337d0e619d8f75bf4ad (patch)
treef24c49a93c44759e95f5bdb457ef25ac7be0f06f /indra/llrender
parent1016b9de1804e445252bda297ae93aed6c2971f0 (diff)
SL-10449 Fix off-by-one line numbers when dumping shader that failed to compile/link
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llshadermgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp
index 896dd566c1..8cfccb944c 100644
--- a/indra/llrender/llshadermgr.cpp
+++ b/indra/llrender/llshadermgr.cpp
@@ -580,7 +580,7 @@ void LLShaderMgr::dumpShaderSource(U32 shader_code_count, GLcharARB** shader_cod
if (last == '\n')
line[len - 1] = 0;
- LL_SHADER_LOADING_WARNS() << i << ": " << shader_code_text[i] << LL_ENDL;
+ LL_SHADER_LOADING_WARNS() << i+1 << ": " << shader_code_text[i] << LL_ENDL;
if (last == '\n')
line[len - 1] = '\n';