diff --git a/src/dxvk/dxvk_instance.cpp b/src/dxvk/dxvk_instance.cpp index c1539f48..acc132f5 100644 --- a/src/dxvk/dxvk_instance.cpp +++ b/src/dxvk/dxvk_instance.cpp @@ -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& a, const Rc& b) -> bool { static const std::array deviceTypes = {{ VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,