mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Remove unnecessary explicit check for the partition index being physical_devices.end()
This commit is contained in:
parent
97734970f0
commit
80396093b4
@ -1235,7 +1235,7 @@ detail::Result<std::vector<PhysicalDevice>> PhysicalDeviceSelector::select_impl(
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Remove the partially suitable elements if they aren't desired
|
// 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());
|
physical_devices.erase(partition_index, physical_devices.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user