diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2020-04-07 14:07:45 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2020-04-07 14:07:45 -0700 |
commit | 4051f5754a53d12454365337d0e619d8f75bf4ad (patch) | |
tree | f24c49a93c44759e95f5bdb457ef25ac7be0f06f | |
parent | 1016b9de1804e445252bda297ae93aed6c2971f0 (diff) |
SL-10449 Fix off-by-one line numbers when dumping shader that failed to compile/link
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 2 |
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'; |