1
0
Fork 0

Merge pull request #105906 from DarioSamo/d3d12-error-spam

Fix error spam to due wrong use of `reserve()` in D3D12 driver.
This commit is contained in:
Thaddeus Crews 2025-04-29 11:24:10 -05:00
commit abc5f77a01
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 2 additions and 2 deletions

View File

@ -4469,10 +4469,10 @@ void RenderingDeviceDriverD3D12::_command_bind_uniform_set(CommandBufferID p_cmd
}
#endif
last_bind->root_tables.resources.reserve(shader_set.num_root_params.resources);
last_bind->root_tables.resources.clear();
last_bind->root_tables.samplers.reserve(shader_set.num_root_params.samplers);
last_bind->root_tables.samplers.clear();
last_bind->root_tables.resources.reserve(shader_set.num_root_params.resources);
last_bind->root_tables.samplers.reserve(shader_set.num_root_params.samplers);
last_bind->uses++;
struct {