Skip to content

Commit

Permalink
Merge pull request #93649 from ze2j/remove_useless_instantiation
Browse files Browse the repository at this point in the history
Remove useless instantiation in `RDShaderFile::parse_versions_from_text`
  • Loading branch information
akien-mga committed Jun 27, 2024
2 parents 7a4cdd9 + 37479cf commit 7907ef8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions servers/rendering/rendering_device_binds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 7907ef8

Please sign in to comment.