summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-27 10:06:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-27 10:06:08 +0200
commit7907ef835d17cd01c14203c239dc017cbe8605a3 (patch)
treeeeeb10decf0d61ba38c118e5217fbf6420d35c7d
parent7a4cdd904a4409328aa7239919d482637025bc7c (diff)
parent37479cfad5ab183b5d46f80e157420f76fb127ca (diff)
downloadredot-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.cpp3
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.");