From 37479cfad5ab183b5d46f80e157420f76fb127ca Mon Sep 17 00:00:00 2001 From: ze2j <46556066+ze2j@users.noreply.github.com> Date: Thu, 27 Jun 2024 08:57:06 +0200 Subject: [PATCH] Remove useless instantiation in RDShaderFile::parse_versions_from_text --- servers/rendering/rendering_device_binds.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/servers/rendering/rendering_device_binds.cpp b/servers/rendering/rendering_device_binds.cpp index 3678b70254df..986f01a52cb6 100644 --- a/servers/rendering/rendering_device_binds.cpp +++ b/servers/rendering/rendering_device_binds.cpp @@ -157,9 +157,6 @@ Error RDShaderFile::parse_versions_from_text(const String &p_text, const String } } - Ref shader_file; - shader_file.instantiate(); - if (base_error.is_empty()) { if (stage_found[RD::SHADER_STAGE_COMPUTE] && stages_found > 1) { ERR_FAIL_V_MSG(ERR_PARSE_ERROR, "When writing compute shaders, [compute] mustbe the only stage present.");