Skip to content

Commit f7f8fae

Browse files
authored
Remove condition
1 parent 69d6d44 commit f7f8fae

File tree

1 file changed

+0
-7
lines changed
  • Graphics/GraphicsEngineVulkan/src/VulkanUtilities

1 file changed

+0
-7
lines changed

Graphics/GraphicsEngineVulkan/src/VulkanUtilities/Instance.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -733,13 +733,6 @@ VkPhysicalDevice Instance::SelectPhysicalDevice(uint32_t AdapterId) const noexce
733733
const int Priority = GetDeviceTypePriority(DeviceProps.deviceType);
734734
if (Priority > BestPriority)
735735
{
736-
// Don't replace a hardware device with a software renderer (e.g. llvmpipe).
737-
// On systems without a discrete GPU the loop would otherwise overwrite an
738-
// integrated GPU with the last CPU-type device in the list.
739-
if (SelectedPhysicalDevice != VK_NULL_HANDLE &&
740-
DeviceProps.deviceType == VK_PHYSICAL_DEVICE_TYPE_CPU)
741-
continue;
742-
743736
SelectedPhysicalDevice = Device;
744737
BestPriority = Priority;
745738
}

0 commit comments

Comments
 (0)