From ddd3ced72dfc44447d87a913340231c3456ad656 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 29 Apr 2025 10:42:55 -0300 Subject: [PATCH] Fix error spam to due wrong use of reserve() in D3D12 driver. --- drivers/d3d12/rendering_device_driver_d3d12.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/d3d12/rendering_device_driver_d3d12.cpp b/drivers/d3d12/rendering_device_driver_d3d12.cpp index 2b8e5294271..3a9c722678b 100644 --- a/drivers/d3d12/rendering_device_driver_d3d12.cpp +++ b/drivers/d3d12/rendering_device_driver_d3d12.cpp @@ -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 {