Fix shader compile error line numbers starting at 0.

(cherry picked from commit a285a1cfdf)
This commit is contained in:
RedMser 2019-01-17 19:25:08 +01:00 committed by Rémi Verschelde
parent 0195619925
commit 740e77f47f
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ Error ShaderCompilerGLES3::compile(VS::ShaderMode p_mode, const String &p_code,
Vector<String> shader = p_code.split("\n");
for (int i = 0; i < shader.size(); i++) {
print_line(itos(i) + " " + shader[i]);
print_line(itos(i + 1) + " " + shader[i]);
}
_err_print_error(NULL, p_path.utf8().get_data(), parser.get_error_line(), parser.get_error_text().utf8().get_data(), ERR_HANDLER_SHADER);