From 13a6ecadcd074448d0bc44c3c47b86f9471efb83 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Mon, 25 Mar 2019 16:12:59 -0500 Subject: [PATCH] [dxvk] Remove needless lambda capture of 'this'. --- src/dxvk/dxvk_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_instance.cpp b/src/dxvk/dxvk_instance.cpp index 239bd1c3f..43a3996e6 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; });