From 80396093b4d972c4c0ca66693ad57ea97e9b82e4 Mon Sep 17 00:00:00 2001 From: Matthew Pohlmann Date: Thu, 7 Jul 2022 23:01:08 -0500 Subject: [PATCH] Remove unnecessary explicit check for the partition index being physical_devices.end() --- src/VkBootstrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VkBootstrap.cpp b/src/VkBootstrap.cpp index 434339e..f289296 100644 --- a/src/VkBootstrap.cpp +++ b/src/VkBootstrap.cpp @@ -1235,7 +1235,7 @@ detail::Result> PhysicalDeviceSelector::select_impl( }); // Remove the partially suitable elements if they aren't desired - if (selection == DeviceSelectionMode::only_fully_suitable && partition_index != physical_devices.end()) { + if (selection == DeviceSelectionMode::only_fully_suitable) { physical_devices.erase(partition_index, physical_devices.end()); }