1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Use resize_zeroed instead of resize then fill(0) in several places.

This commit is contained in:
Lukas Tenbrink
2025-03-14 09:26:29 +01:00
parent 7e4f6bdb59
commit f4de2cd22a
6 changed files with 7 additions and 15 deletions

View File

@@ -187,8 +187,7 @@ void ShaderRD::_initialize_version(Version *p_version) {
p_version->variants.resize_zeroed(variant_defines.size());
p_version->variant_data.resize(variant_defines.size());
p_version->group_compilation_tasks.resize(group_enabled.size());
p_version->group_compilation_tasks.fill(0);
p_version->group_compilation_tasks.resize_zeroed(group_enabled.size());
}
void ShaderRD::_clear_version(Version *p_version) {