diff --git a/src/dxvk/dxvk_instance.cpp b/src/dxvk/dxvk_instance.cpp index 239bd1c3..43a3996e 100644 --- a/src/dxvk/dxvk_instance.cpp +++ b/src/dxvk/dxvk_instance.cpp @@ -151,7 +151,7 @@ namespace dxvk { } std::sort(result.begin(), result.end(), - [this] (const Rc& a, const Rc& b) -> bool { + [] (const Rc& a, const Rc& b) -> bool { return a->deviceProperties().deviceType == VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU && b->deviceProperties().deviceType != VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU; });