From aa33dd9cb825f47c56c88b4884c7f4831187c673 Mon Sep 17 00:00:00 2001 From: Liam Middlebrook Date: Tue, 15 Mar 2022 16:38:59 -0700 Subject: [PATCH] proton: Set DXVK_ENABLE_NVAPI envvar when NvAPI is enabled See: https://github.com/doitsujin/dxvk/pull/2544 Link: https://github.com/ValveSoftware/Proton/pull/5687 --- proton | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proton b/proton index 5caaae8b..d662eba8 100755 --- a/proton +++ b/proton @@ -1208,6 +1208,9 @@ class Session: if "nativevulkanloader" in self.compat_config: self.dlloverrides["vulkan-1"] = "n" + if "enablenvapi" in self.compat_config: + self.env["DXVK_ENABLE_NVAPI"] = "1" + s = "" for dll in self.dlloverrides: setting = self.dlloverrides[dll]