diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-21 09:21:32 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-21 09:21:32 +0100 |
commit | 4f3ec4121a4e1f45d64750c6b3bf66f1299ca501 (patch) | |
tree | 0f234f4b6376d51a031e332f8ed064d607910c30 /servers | |
parent | 6b4a01f99ab8978ee115c13b4900a222e7b4e449 (diff) | |
parent | 522d4243bfd2fcb5de7597e7829ad3b99df68244 (diff) |
Merge pull request #70350 from Chaosus/stringname_operator
Add missing != operator to `StringName`
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/shader_language.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp index e451fb35c2..512995dd83 100644 --- a/servers/rendering/shader_language.cpp +++ b/servers/rendering/shader_language.cpp @@ -4417,7 +4417,7 @@ bool ShaderLanguage::_is_operator_assign(Operator p_op) const { } bool ShaderLanguage::_validate_varying_assign(ShaderNode::Varying &p_varying, String *r_message) { - if (current_function != String("vertex") && current_function != String("fragment")) { + if (current_function != "vertex" && current_function != "fragment") { *r_message = vformat(RTR("Varying may not be assigned in the '%s' function."), current_function); return false; } |