Minor fix on GLSL shader parser
This commit is contained in:
parent
ce1811f9e2
commit
af3f9a854e
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ Error RDShaderFile::parse_versions_from_text(const String &p_text, const String
|
||||||
base_error = "Missing `=` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
base_error = "Missing `=` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (l.find(";") != -1) {
|
if (l.find(";") == -1) {
|
||||||
// We don't require a semicolon per se, but it's needed for clang-format to handle things properly.
|
// We don't require a semicolon per se, but it's needed for clang-format to handle things properly.
|
||||||
base_error = "Missing `;` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
base_error = "Missing `;` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue