Merge pull request #37579 from Calinou/improve-shader-error-output

Improve the shader error console output
This commit is contained in:
Rémi Verschelde 2020-04-07 09:17:37 +02:00 committed by GitHub
commit 8c8e3ba918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -647,13 +647,13 @@ String String::camelcase_to_underscore(bool lowercase) const {
}
String String::get_with_code_lines() const {
Vector<String> lines = split("\n");
const Vector<String> lines = split("\n");
String ret;
for (int i = 0; i < lines.size(); i++) {
if (i > 0) {
ret += "\n";
}
ret += itos(i + 1) + " " + lines[i];
ret += vformat("%4d | %s", i + 1, lines[i]);
}
return ret;
}