From af3f9a854edef78e751d4fb68df854b1c0cc24c6 Mon Sep 17 00:00:00 2001 From: jfons Date: Sat, 6 Jun 2020 19:53:16 +0200 Subject: [PATCH] Minor fix on GLSL shader parser --- servers/rendering/rendering_device_binds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/rendering_device_binds.cpp b/servers/rendering/rendering_device_binds.cpp index 291f2ff7056..0400cebfdc3 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 = \"\";`."; 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 = \"\";`."; break;