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

doctool: Fix differences between headless and Vulkan rendering backends

Fixes #53913.
This commit is contained in:
Rémi Verschelde
2021-10-20 16:37:19 +02:00
parent 8748247d6f
commit da98357e6e
5 changed files with 13 additions and 2 deletions

View File

@@ -8913,6 +8913,8 @@ void RenderingDeviceVulkan::initialize(VulkanContext *p_context, bool p_local_de
}
}
// Note: If adding new project settings here, also duplicate their definition in
// rendering_server.cpp for headless doctool.
staging_buffer_block_size = GLOBAL_DEF("rendering/vulkan/staging_buffer/block_size_kb", 256);
staging_buffer_block_size = MAX(4, staging_buffer_block_size);
staging_buffer_block_size *= 1024; //kb -> bytes