diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-27 10:06:08 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-27 10:06:08 +0200 |
commit | 7907ef835d17cd01c14203c239dc017cbe8605a3 (patch) | |
tree | eeeb10decf0d61ba38c118e5217fbf6420d35c7d | |
parent | 7a4cdd904a4409328aa7239919d482637025bc7c (diff) | |
parent | 37479cfad5ab183b5d46f80e157420f76fb127ca (diff) | |
download | redot-engine-7907ef835d17cd01c14203c239dc017cbe8605a3.tar.gz |
Merge pull request #93649 from ze2j/remove_useless_instantiation
Remove useless instantiation in `RDShaderFile::parse_versions_from_text`
-rw-r--r-- | servers/rendering/rendering_device_binds.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/servers/rendering/rendering_device_binds.cpp b/servers/rendering/rendering_device_binds.cpp index 3678b70254..986f01a52c 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<RDShaderFile> 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."); |