From 7ac0f47d1c8f2b2b5318944c7e0a49aa48b60dd2 Mon Sep 17 00:00:00 2001 From: Blisto91 <47954800+Blisto91@users.noreply.github.com> Date: Sun, 14 Jan 2024 22:15:56 +0100 Subject: [PATCH] [util] Enable deviceLossOnFocusLoss for BF2 and BF2142 The ingame spawn and gear selection GUI can disappear from view unless this is set. --- src/util/config/config.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/util/config/config.cpp b/src/util/config/config.cpp index b30086de009..665fdf9a225 100644 --- a/src/util/config/config.cpp +++ b/src/util/config/config.cpp @@ -545,9 +545,15 @@ namespace dxvk { { "d3d9.supportDFFormats", "False" }, { "d3d9.deviceLossOnFocusLoss", "True" }, }} }, - /* Battlefield 2 (bad z-pass) */ + /* Battlefield 2 * + * Bad z-pass and ingame GUI loss on alt tab */ { R"(\\BF2\.exe$)", {{ - { "d3d9.longMad", "True" }, + { "d3d9.longMad", "True" }, + { "d3d9.deviceLossOnFocusLoss", "True" }, + }} }, + /* Battlefield 2142 - Same GUI issue as BF2 */ + { R"(\\BF2142\.exe$)", {{ + { "d3d9.deviceLossOnFocusLoss", "True" }, }} }, /* SpellForce 2 Series */ { R"(\\SpellForce2.*\.exe$)", {{