Skip to content
Snippets Groups Projects
Commit 4051f575 authored by Ptolemy's avatar Ptolemy
Browse files

SL-10449 Fix off-by-one line numbers when dumping shader that failed to compile/link

parent 1016b9de
Branches
Tags
No related merge requests found
...@@ -580,7 +580,7 @@ void LLShaderMgr::dumpShaderSource(U32 shader_code_count, GLcharARB** shader_cod ...@@ -580,7 +580,7 @@ void LLShaderMgr::dumpShaderSource(U32 shader_code_count, GLcharARB** shader_cod
if (last == '\n') if (last == '\n')
line[len - 1] = 0; 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') if (last == '\n')
line[len - 1] = '\n'; line[len - 1] = '\n';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment