瀏覽代碼

Fix error spam to due wrong use of reserve() in D3D12 driver.

Dario 4 月之前
父節點
當前提交
ddd3ced72d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/d3d12/rendering_device_driver_d3d12.cpp

+ 2 - 2
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 {