Skip to content

Commit 8e17024

Browse files
committed
Fix: Error output is not require, VK_QUEUE_TRANSFER_BIT is optional.
1 parent fd4c29a commit 8e17024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/vulkan/rendering_device_driver_vulkan.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,9 @@ RDD::CommandQueueFamilyID RenderingDeviceDriverVulkan::command_queue_family_get(
23922392
}
23932393
}
23942394

2395-
ERR_FAIL_COND_V_MSG(picked_family_index >= queue_family_properties.size(), CommandQueueFamilyID(), "A queue family with the requested bits could not be found.");
2395+
if (picked_family_index >= queue_family_properties.size()) {
2396+
return CommandQueueFamilyID();
2397+
}
23962398

23972399
// Since 0 is a valid index and we use 0 as the error case, we make the index start from 1 instead.
23982400
return CommandQueueFamilyID(picked_family_index + 1);

0 commit comments

Comments
 (0)