From 8e170248b3d8dbd7e3680960e0472a5f5d1c7aef Mon Sep 17 00:00:00 2001 From: Alexander Hartmann Date: Tue, 19 Nov 2024 01:49:46 +0100 Subject: [PATCH] Fix: Error output is not require, `VK_QUEUE_TRANSFER_BIT` is optional. --- drivers/vulkan/rendering_device_driver_vulkan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vulkan/rendering_device_driver_vulkan.cpp b/drivers/vulkan/rendering_device_driver_vulkan.cpp index a86f72e0b98..b6e5ed02878 100644 --- a/drivers/vulkan/rendering_device_driver_vulkan.cpp +++ b/drivers/vulkan/rendering_device_driver_vulkan.cpp @@ -2392,7 +2392,9 @@ RDD::CommandQueueFamilyID RenderingDeviceDriverVulkan::command_queue_family_get( } } - ERR_FAIL_COND_V_MSG(picked_family_index >= queue_family_properties.size(), CommandQueueFamilyID(), "A queue family with the requested bits could not be found."); + if (picked_family_index >= queue_family_properties.size()) { + return CommandQueueFamilyID(); + } // Since 0 is a valid index and we use 0 as the error case, we make the index start from 1 instead. return CommandQueueFamilyID(picked_family_index + 1);