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;