[dxvk] preserve order of devices with the same type

This commit is contained in:
DadSchoorse 2021-03-03 21:25:45 +01:00 committed by Philip Rebohle
parent 94049c0c90
commit e44a1e614b
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ namespace dxvk {
result.push_back(new DxvkAdapter(m_vki, adapters[i]));
}
std::sort(result.begin(), result.end(),
std::stable_sort(result.begin(), result.end(),
[] (const Rc<DxvkAdapter>& a, const Rc<DxvkAdapter>& b) -> bool {
static const std::array<VkPhysicalDeviceType, 3> deviceTypes = {{
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,