diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-06 21:21:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 21:21:54 +0200 |
commit | 23a2b4ab7d5e61dfc1e5201b95ba447c647676f4 (patch) | |
tree | b45db7e510e4a1923b15bc0d92e77d30873bc086 /servers | |
parent | d838a4473589797264a1f9f5cd4de95604709d30 (diff) | |
parent | af3f9a854edef78e751d4fb68df854b1c0cc24c6 (diff) |
Merge pull request #39341 from JFonS/minor_shader_parsing_fix
Minor fix on GLSL shader parser
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/rendering_device_binds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/rendering_device_binds.cpp b/servers/rendering/rendering_device_binds.cpp index 291f2ff705..0400cebfdc 100644 --- a/servers/rendering/rendering_device_binds.cpp +++ b/servers/rendering/rendering_device_binds.cpp @@ -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; |