summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-26 13:12:26 +0200
committerGitHub <noreply@github.com>2021-07-26 13:12:26 +0200
commit04fd284a9b5f9d63922c94be061ad7d9ec2baa90 (patch)
tree5a644f0f18786c7f2235fae4ac456633334d422e /servers
parent5707c5d0ff67f3fa3a20ff7b30bdcd1f176b0f4b (diff)
parent3013324a4ee24eecc379c5381c5e6304070edec6 (diff)
Merge pull request #50881 from Chaosus/shader_fix_build
Fix compilation of `shader_language.cpp`
Diffstat (limited to 'servers')
-rw-r--r--servers/rendering/shader_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp
index 47d10f91a7..8f4f248276 100644
--- a/servers/rendering/shader_language.cpp
+++ b/servers/rendering/shader_language.cpp
@@ -3373,7 +3373,7 @@ bool ShaderLanguage::_validate_varying_using(ShaderNode::Varying &p_varying, Str
bool ShaderLanguage::_check_varying_usages(int *r_error_line, String *r_error_message) const {
for (const List<ShaderLanguage::VaryingUsage>::Element *E = unknown_varying_usages.front(); E; E = E->next()) {
ShaderNode::Varying::Stage stage = E->get().var->stage;
- if (stage != ShaderNode::Varying::STAGE_UNKNOWN && stage != ShaderNode::Varying::STAGE_VERTEX && stage != ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT && stage != ShaderNode::Varying::STAGE_VERTEX_TO_LIGHT) {
+ if (stage != ShaderNode::Varying::STAGE_UNKNOWN && stage != ShaderNode::Varying::STAGE_VERTEX && stage != ShaderNode::Varying::STAGE_VERTEX_TO_FRAGMENT_LIGHT) {
*r_error_line = E->get().line;
*r_error_message = RTR("Fragment-stage varying could not been accessed in custom function!");
return false;