configure_graphics: Capture by reference

Small optimization.
This commit is contained in:
lat9nq 2023-09-05 17:50:21 -04:00
parent ea46efd9a2
commit d078cff269
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() {
}
Settings::RendererBackend ConfigureGraphics::GetCurrentGraphicsBackend() const {
const auto selected_backend = [=]() {
const auto selected_backend = [&]() {
if (!Settings::IsConfiguringGlobal() && !api_restore_global_button->isEnabled()) {
return Settings::values.renderer_backend.GetValue(true);
}