You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
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:
@@ -4469,10 +4469,10 @@ void RenderingDeviceDriverD3D12::_command_bind_uniform_set(CommandBufferID p_cmd
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
last_bind->root_tables.resources.reserve(shader_set.num_root_params.resources);
|
|
||||||
last_bind->root_tables.resources.clear();
|
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.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++;
|
last_bind->uses++;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user