Merge pull request #39341 from JFonS/minor_shader_parsing_fix
Minor fix on GLSL shader parser
This commit is contained in:
commit
23a2b4ab7d
|
@ -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>\";`.";
|
||||
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.
|
||||
base_error = "Missing `;` in '" + l + "'. Version syntax is `version = \"<defines with C escaping>\";`.";
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue