From 25e24f2d05533645b58c6dce64e6533750a693c4 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Thu, 16 Dec 2021 10:22:01 +0300 Subject: [PATCH] [3.x] Prevent writing incorrect shader hints --- servers/visual/shader_language.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 90b2dc9941b..1a15752f002 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -6006,6 +6006,7 @@ Error ShaderLanguage::_parse_shader(const Map &p_funct } else { _set_error("Expected valid type hint after ':'."); + return ERR_PARSE_ERROR; } if (uniform2.hint != ShaderNode::Uniform::HINT_RANGE && uniform2.hint != ShaderNode::Uniform::HINT_NONE && uniform2.hint != ShaderNode::Uniform::HINT_COLOR && type <= TYPE_MAT4) {