From e34482a580ecd8587239f10518284d35ff989883 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Mon, 31 Oct 2022 18:43:21 +0000 Subject: [PATCH] proton: Disable hidenvgpu if nvapi is enabled. Link: https://github.com/ValveSoftware/Proton/pull/6227 --- proton | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proton b/proton index f63a5a03..7fc280b0 100755 --- a/proton +++ b/proton @@ -1355,7 +1355,8 @@ class Session: if not "VKD3D_FEATURE_LEVEL" in self.env: self.env["VKD3D_FEATURE_LEVEL"] = "12_0" - if "hidenvgpu" in self.compat_config: + # enablenvapi beats hidenvgpu + if "hidenvgpu" in self.compat_config and "enablenvapi" not in self.compat_config: self.env["WINE_HIDE_NVIDIA_GPU"] = "1" if "usenativexinput13" in self.compat_config: