Browse Source

Merge pull request #94896 from jsjtxietian/carry-subgroup

Fix uniform subgroup in shader will carry out to next group
Rémi Verschelde 1 year ago
parent
commit
5098ac587e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      servers/rendering/shader_language.cpp

+ 1 - 0
servers/rendering/shader_language.cpp

@@ -9217,6 +9217,7 @@ Error ShaderLanguage::_parse_shader(const HashMap<StringName, FunctionInfo> &p_f
 				tk = _get_token();
 				if (tk.type == TK_IDENTIFIER) {
 					current_uniform_group_name = tk.text;
+					current_uniform_subgroup_name = "";
 					tk = _get_token();
 					if (tk.type == TK_PERIOD) {
 						tk = _get_token();