From a7994c02d8287154c44580e64aa6e4b08b905e35 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 16 Mar 2022 12:37:18 +0800 Subject: [PATCH] Fix command buffers size --- lib/graphics_engine/src/ge_vulkan_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphics_engine/src/ge_vulkan_driver.cpp b/lib/graphics_engine/src/ge_vulkan_driver.cpp index 14c5fdea6..a6f4ab2ec 100644 --- a/lib/graphics_engine/src/ge_vulkan_driver.cpp +++ b/lib/graphics_engine/src/ge_vulkan_driver.cpp @@ -967,7 +967,7 @@ void GEVulkanDriver::createCommandPool() // ---------------------------------------------------------------------------- void GEVulkanDriver::createCommandBuffers() { - std::vector buffers(m_vk->swap_chain_images.size()); + std::vector buffers(MAX_FRAMES_IN_FLIGHT); VkCommandBufferAllocateInfo alloc_info = {}; alloc_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;