From e6c45fbe5dc38d5e898d8f1058fe7256cdae7559 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Mon, 29 Jul 2024 11:07:09 +0800 Subject: [PATCH] Fix uniform subgroup in shader will carry out to next group --- servers/rendering/shader_language.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/rendering/shader_language.cpp b/servers/rendering/shader_language.cpp index 745dcf53922..e9f69a8c670 100644 --- a/servers/rendering/shader_language.cpp +++ b/servers/rendering/shader_language.cpp @@ -9204,6 +9204,7 @@ Error ShaderLanguage::_parse_shader(const HashMap &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();