mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[dxvk] preserve order of devices with the same type
This commit is contained in:
parent
94049c0c90
commit
e44a1e614b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user